Skip to content

Commit

Permalink
Fix path bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nimaid committed Jul 5, 2020
1 parent 9816cda commit 73d8ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bookdir2pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def iterdict(d, base_path="", empty_parents_in=list()):
input_pdf_file.close()
os.remove(temp_pdf)

if purify and (os.realpath(final_input_dir) != os.realpath(input_dir)):
if purify and (os.path.realpath(final_input_dir) != os.path.realpath(input_dir)):
print()
print("Delete temporary directory '{}'".format(final_input_dir))
shutil.rmtree(final_input_dir)

0 comments on commit 73d8ed0

Please sign in to comment.