thumbor: Fix __file__ typo.

Replaced '__file__' typo with __file__ which used to add
wrong path to sys.path.
This commit is contained in:
arpit551 2020-04-12 23:14:42 +05:30 committed by Tim Abbott
parent 504216c04e
commit d60efa1478
2 changed files with 2 additions and 2 deletions

View File

@ -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 (

View File

@ -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