mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
thumbor: Fix __file__ typo.
Replaced '__file__' typo with __file__ which used to add wrong path to sys.path.
This commit is contained in:
@@ -8,7 +8,7 @@ from django.conf import settings
|
||||
from django.utils.http import is_safe_url
|
||||
from libthumbor import CryptoURL
|
||||
|
||||
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath('__file__'))))
|
||||
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
sys.path.append(ZULIP_PATH)
|
||||
|
||||
from zthumbor.loaders.helpers import (
|
||||
|
@@ -6,7 +6,7 @@ import re
|
||||
import sys
|
||||
from typing import Any, Text, Tuple, Optional
|
||||
|
||||
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath('__file__'))))
|
||||
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
sys.path.append(ZULIP_PATH)
|
||||
|
||||
# Piece of code below relating to secrets conf has been duplicated with that of
|
||||
|
Reference in New Issue
Block a user