Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion DecryptPDF.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import pikepdf, tkinter, os
from tkinter import filedialog
from pathlib import Path
import subprocess, platform
print(' ***** NOTICE: MAKE SURE THAT THIS WINDOW IS ACTIVE BEFORE PRESSING ENTER *****')

input("\n Let's select your PDF file!\n Press Enter :-)")
Expand Down Expand Up @@ -35,4 +36,9 @@


input('\n\n Press Enter to exit the program and open the folder :-]')
os.startfile(destDir)
if platform.system() == "Windows":
os.startfile(destDir)
elif platform.system() == "Darwin": # macOS
subprocess.run(["open", destDir])
else: # Linux
subprocess.run(["xdg-open", destDir])