diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2006-12-08 14:33:08 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2006-12-08 14:33:08 +0000 |
| commit | bd912b8d1699a43ea6bee554635406e2d8b08f0b (patch) | |
| tree | 147a80dff0e727d03b11ec17abe77ca75b233ab0 | |
| parent | Adding some docs (diff) | |
| download | inkscape-bd912b8d1699a43ea6bee554635406e2d8b08f0b.tar.gz inkscape-bd912b8d1699a43ea6bee554635406e2d8b08f0b.zip | |
Made it work again if Inkscape is installed on different drive than temp dir.
fixed pstoedit commandline that did not work on Win32.
(bzr r2082)
| -rw-r--r-- | share/extensions/eqtexsvg.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/share/extensions/eqtexsvg.py b/share/extensions/eqtexsvg.py index 71242afae..6d2a40645 100644 --- a/share/extensions/eqtexsvg.py +++ b/share/extensions/eqtexsvg.py @@ -100,7 +100,8 @@ class EQTEXSVG(inkex.Effect): os.rmdir(base_dir) create_equation_tex(latex_file, self.options.formula) - os.system('cd ' + base_dir + '; latex -halt-on-error ' + latex_file + ' > ' + out_file) + #os.system('cd ' + base_dir) + os.system('latex -output-directory=' + base_dir + ' -halt-on-error ' + latex_file + ' > ' + out_file) try: os.stat(dvi_file) except OSError: @@ -110,8 +111,8 @@ class EQTEXSVG(inkex.Effect): sys.exit(1) os.system('dvips -q -f -E -D 600 -y 5000 -o ' + ps_file + ' ' + dvi_file) - os.system('cd ' + base_dir + '; pstoedit -f plot-svg -dt -ssp ' + ps_file + ' ' + svg_file + '&> ' + out_file) - + #os.system('cd ' + base_dir) + os.system('pstoedit -f plot-svg -dt -ssp ' + ps_file + ' ' + svg_file + '> ' + out_file) svg_open(self, svg_file) clean() |
