From 9f8df6e227f6b9d6c811c2c4fd3d4e810f5fe5c7 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 3 Sep 2022 02:02:04 +0200 Subject: [PATCH] fix: script looking for `config.yml` in CWD --- dnsupdate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnsupdate.py b/dnsupdate.py index 7af2252..ce309d8 100755 --- a/dnsupdate.py +++ b/dnsupdate.py @@ -19,7 +19,7 @@ class InvalidConfigurationError(RuntimeError): def main(): - path_to_config_file = Path("config.yml").resolve() + path_to_config_file = Path(__file__).parent / "config.yml" # Check if config file exists if not path_to_config_file.is_file():