Last active
December 16, 2017 12:44
-
-
Save ugurozturk/993c790009758218d49903b2dd8ecc64 to your computer and use it in GitHub Desktop.
Windows ps2pdf path via Python All Files In Current Dir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from subprocess import check_output | |
import os | |
files = [f for f in os.listdir('.') if os.path.isfile(f) and f.endswith(".eps")] | |
for f in files: | |
veri = check_output("ps2pdf "+ f + " " + f + ".pdf", shell=True).decode() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment