fix imports when using the gallery_dl directory as argument (#4581)

This commit is contained in:
Mike Fährmann
2023-09-26 22:07:50 +02:00
parent 37184eb9eb
commit 7150c4c76c

View File

@@ -9,7 +9,7 @@
import sys
if __package__ is None and not hasattr(sys, "frozen"):
if not __package__ and not hasattr(sys, "frozen"):
import os.path
path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, os.path.realpath(path))