Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calling Inkscape in Python [duplicate]

Possible Duplicate:
Calling an external command in Python

I am trying to convert SVG files to PDFs in Python. I want to use Inkscape for this. How can I call Inkscape in Python ?

like image 554
medusalith Avatar asked Jul 25 '12 14:07

medusalith


1 Answers

If you don't need to communicate with the process at all, this should do just fine:

import subprocess
p=subprocess.call(['program','arg1','arg2','arg3', ...])
like image 165
mgilson Avatar answered Oct 26 '22 11:10

mgilson