Commit 9bde21bb authored by sumpfralle's avatar sumpfralle

handle an Ubuntu bug gracefully:

* a pstoedit bug in Ubuntu 'lucid' causes a non-zero return code for the eps->dxf conversion
* this exit code (-11) is accepted with a warning now


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@740 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 374a893e
...@@ -64,6 +64,12 @@ def convert_eps2dxf(eps_filename, dxf_filename, location=None): ...@@ -64,6 +64,12 @@ def convert_eps2dxf(eps_filename, dxf_filename, location=None):
returncode = process.wait() returncode = process.wait()
if returncode == 0: if returncode == 0:
return True return True
elif returncode == -11:
log.warn(("SVGImporter: maybe there was a problem with the " \
+ "conversion from EPS (%s) to DXF\n Users of Ubuntu 'lucid' should install " \
+ "the package 'libpstoedit0c2a' from the 'maverick' " \
+ "repository to avoid this warning.") % str(eps_filename))
return True
else: else:
log.warn(("SVGImporter: failed to convert EPS file (%s) to DXF file " \ log.warn(("SVGImporter: failed to convert EPS file (%s) to DXF file " \
+ "(%s): %s") % (eps_filename, dxf_filename, + "(%s): %s") % (eps_filename, dxf_filename,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment