mirror of https://github.com/zulip/zulip.git
thumbor: Fix __file__ typo.
Replaced '__file__' typo with __file__ which used to add wrong path to sys.path.
This commit is contained in:
parent
504216c04e
commit
d60efa1478
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue