Skip to content

Instantly share code, notes, and snippets.

@ugurozturk
Last active December 16, 2017 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ugurozturk/993c790009758218d49903b2dd8ecc64 to your computer and use it in GitHub Desktop.
Save ugurozturk/993c790009758218d49903b2dd8ecc64 to your computer and use it in GitHub Desktop.
Windows ps2pdf path via Python All Files In Current Dir
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