Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

thumbnailing: Remove unnecessary os.path adjustment.

Alex Vandiver2c5dff7f59e9
diff --git a/zerver/lib/thumbnail.py b/zerver/lib/thumbnail.py
index f277f3dac02..2822d24c207 100644
--- a/zerver/lib/thumbnail.py
+++ b/zerver/lib/thumbnail.py
@@ -1,12 +1,7 @@
-import os
-import sys
from urllib.parse import urljoin
from django.utils.http import url_has_allowed_host_and_scheme
-ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-sys.path.append(ZULIP_PATH)
-
from zerver.lib.camo import get_camo_url