Skip to content

Commit

Permalink
fix imports when using the gallery_dl directory as argument (mikf#4581)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Sep 26, 2023
1 parent 37184eb commit 7150c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 7150c4c

Please sign in to comment.