Skip to content

Commit

Permalink
Fix path join
Browse files Browse the repository at this point in the history
  • Loading branch information
thelazt committed Jul 8, 2022
1 parent 921fab0 commit 8a7da3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wol.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8a7da3c

Please sign in to comment.