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():