]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/fig2pstex.py
Enable the external inset to output different flavours of latex.
[lyx.git] / lib / scripts / fig2pstex.py
index 68a113d7479452d379b524f6ba8aaac55ddae8c7..741665736f3f97cfb785bf64027df7bcd7ea6605 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#! /usr/bin/env python
 # This script converts a xfig file into Postscript/LaTeX files
 
 import sys
@@ -17,7 +17,7 @@ os.wait()
 
 pid = os.fork()
 if pid == 0:
-       os.execvp("fig2dev", ["fig2dev", "-Lpstex_t"] + parameters + [filename, basename + ".pstex_t"])
-       print "convert did not work second time"
+       os.execvp("fig2dev", ["fig2dev", "-Lpstex_t", "-p" + basename] + parameters + [filename, basename + ".pstex_t"])
+       print "fig2dev did not work the second time"
        os.exit(1)
 os.wait()