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")