Skip to content

Instantly share code, notes, and snippets.

@tos-kamiya
Created April 29, 2014 23:37
Show Gist options
  • Save tos-kamiya/3f0e64d1b3d5b7398e1e to your computer and use it in GitHub Desktop.
Save tos-kamiya/3f0e64d1b3d5b7398e1e to your computer and use it in GitHub Desktop.
convert eps files to svg in the current directory
#coding: utf-8
import os
import subprocess
files = os.listdir(".")
for f in files:
root, ext = os.path.splitext(f)
if ext == ".eps":
subprocess.check_call(["inkscape", f, "-D", "-l", root + ".svg"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment