Module svg2png
[hide private]
[frames] | no frames]

Source Code for Module svg2png

 1  #!/usr/bin/python 
 2   
 3  import os, fnmatch 
 4   
 5  for root, dirs, files in os.walk("."): 
 6    for svg in fnmatch.filter(files, "*.svg"): 
 7      svg = os.path.join(root, svg) 
 8      print svg, os.system("inkscape -e '%s' -D '%s' -b black -y 0.0" % (svg.replace(".svg", ".png"), svg)) 
 9