From cb539ad64dbd7be0403e9fcfce693b664facbce2 Mon Sep 17 00:00:00 2001 From: Timothy Miller <46549361+timothymiller@users.noreply.github.com> Date: Sat, 30 Jul 2022 21:24:20 -0400 Subject: [PATCH] Fixed config path bugs in Docker --- cloudflare-ddns.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudflare-ddns.py b/cloudflare-ddns.py index 9ad3634..c9b2945 100755 --- a/cloudflare-ddns.py +++ b/cloudflare-ddns.py @@ -16,7 +16,7 @@ import threading import time import requests -CONFIG_PATH = os.environ.get('CONFIG_PATH', os.getcwd() + "/") +CONFIG_PATH = os.environ.get('CONFIG_PATH', os.getcwd()) class GracefulExit: @@ -210,7 +210,7 @@ if __name__ == '__main__': config = None try: - with open(CONFIG_PATH + "config.json") as config_file: + with open(os.path.join(CONFIG_PATH, "config.json")) as config_file: config = json.loads(config_file.read()) except: print("😡 Error reading config.json")