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