Skip to content

Commit

Permalink
Possible fix for os.getenv default value
Browse files Browse the repository at this point in the history
  • Loading branch information
reconman committed Nov 20, 2021
1 parent d62df4b commit 49cf520
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PlexAniSync.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def read_settings(settings_file) -> configparser.ConfigParser:
return settings


SETTINGS_FILE = os.getenv("SETTINGS_FILE", "settings.ini")
SETTINGS_FILE = os.getenv("SETTINGS_FILE") or "settings.ini"

if len(sys.argv) > 1:
SETTINGS_FILE = sys.argv[1]
Expand Down
2 changes: 1 addition & 1 deletion TautulliSyncHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def read_settings(settings_file) -> configparser.ConfigParser:
return settings


SETTINGS_FILE = os.getenv("SETTINGS_FILE", "settings.ini")
SETTINGS_FILE = os.getenv("SETTINGS_FILE") or "settings.ini"

if len(sys.argv) < 2:
logger.error("No show title specified in arguments so cancelling updating")
Expand Down

0 comments on commit 49cf520

Please sign in to comment.