]> git.lyx.org Git - lyx.git/blobdiff - src/converter.C
* remove various xforms relicts, in particular:
[lyx.git] / src / converter.C
index b0669b24083aa04f1144c81d552ebbea0ebaf8fc..01da621ade4a1f2a2c0d707123fe50c3b9930407 100644 (file)
@@ -26,6 +26,7 @@
 
 #include "support/filetools.h"
 #include "support/lyxlib.h"
+#include "support/os.h"
 #include "support/path.h"
 #include "support/systemcall.h"
 
@@ -298,7 +299,7 @@ bool Converters::convert(Buffer const * buffer,
                                getExtension(from_file) :
                                formats.extension(from_format);
                        string const command =
-                               "python " +
+                               lyx::support::os::python() + ' ' +
                                quoteName(libFileSearch("scripts", "convertDefault.py")) +
                                ' ' +
                                quoteName(from_ext + ':' + from_file) +
@@ -306,7 +307,7 @@ bool Converters::convert(Buffer const * buffer,
                                quoteName(to_ext + ':' + to_file);
                        lyxerr[Debug::FILES]
                                << "No converter defined! "
-                                  "I use convertDefault.sh:\n\t"
+                                  "I use convertDefault.py:\n\t"
                                << command << endl;
                        Systemcall one;
                        one.startscript(Systemcall::Wait, command);