fix imports when using the gallery_dl directory as argument (#4581)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user