title: Python & Inkscape: SVG-to-EMF conversion breaks down?
body: <p>I am trying to automatically convert an SVG graphic to EMF with Python, using Inkscape on the command line. My code is</p>
  
  <pre><code>from subprocess import call
  import matplotlib.pyplot as plt
  from numpy import linspace, sin
  
  x = linspace(0,10,10)
  y = sin(x)
  plt.plot(x,y)
  plt.savefig("source.svg")
  
  for k in range(0,5):
      call(["C:\Program Files\Inkscape\inkscape.exe", "--file", "source.svg", "--export-emf", "result" + str(k) + ".emf" ]) 
      # this usually breaks down at k = 1 or 2
  </code></pre>
  
  <p>The "call" command works fine when called once. If I call it multiple times, e.g. on consecutive lines as shown above, Inkscape breaks down and I have to restart my python kernel and kill Inkscape via the Windows Task-Manager.</p>
  
  <p>Any ideas why that might be? </p>
  
  <p>Thanks!</p>