Skip to content

Commit

Permalink
voctopublish: fix running without VOCTOPUBLISH_PATH set
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunsi committed Apr 3, 2024
1 parent e17644e commit c722cb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions voctopublish/voctopublish.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

MY_PATH = os.path.abspath(os.path.dirname(__file__))
POSSIBLE_CONFIG_PATHS = [
os.getenv("VOCTOPUBLISH_CONFIG"),
os.getenv("VOCTOPUBLISH_CONFIG", ""),
os.path.expanduser("~/voctopublish.conf"),
os.path.join(MY_PATH, "voctopublish.conf"),
os.path.join(MY_PATH, "client.conf"),
Expand All @@ -61,7 +61,7 @@ def __init__(self):
self.thumbs = None

for path in POSSIBLE_CONFIG_PATHS:
if path is not None:
if path:
if os.path.isfile(path):
my_config_path = path
break
Expand Down

0 comments on commit c722cb6

Please sign in to comment.