Skip to content

Commit 382fcbe

Browse files
committed
Don't try to find paperbackup-verify.sh and simplify the message
1 parent 2c43bfa commit 382fcbe

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

paperbackup.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -225,15 +225,5 @@ def finish_page(pdf, canv, pageno):
225225
os.remove(temp_text_path)
226226
os.remove(temp_barcode_path)
227227

228-
verify_prog = which("paperbackup-verify.sh")
229-
if not verify_prog:
230-
verify_prog = which("paperbackup-verify")
231-
if not verify_prog:
232-
verify_prog = which(os.path.join(os.path.dirname(sys.argv[0]), "paperbackup-verify.sh"))
233-
if not verify_prog:
234-
print("\n NOTE: Could not find 'paperbackup-verify' program which should have been")
235-
print( " installed together with {}! ".format(sys.argv[0]))
236-
verify_prog = "paperbackup-verify"
237-
print("\n !!!!!!!!!")
238-
print(" ATTENTION: Running '{} {}.pdf' NOW is STRONGLY advised to".format(verify_prog, just_filename))
239-
print(" !!!!!!!!! verify that zbarimg can read back the generated qr codes!\n")
228+
print("Please now verify that the output can be restored by calling:")
229+
print("paperbackup-verify.sh {}.pdf".format(just_filename))

0 commit comments

Comments
 (0)