From 8a7da3c710ed228e91fa93f01b795d53e0f1e729 Mon Sep 17 00:00:00 2001 From: Bernhard Heinloth Date: Fri, 8 Jul 2022 10:24:17 +0200 Subject: [PATCH] Fix path join --- wol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wol.py b/wol.py index e179268..731e8a2 100755 --- a/wol.py +++ b/wol.py @@ -136,7 +136,7 @@ def listen(host, port): if os.path.isdir(args.dhcp_dir): for conffile in os.listdir(args.dhcp_dir): if conffile.endswith('.conf'): - with open(conffile, 'r') as conf: + with open(os.path.join(args.dhcp_dir, conffile), 'r') as conf: hosts.update(getHosts(conf)) files = files + 1