]> git.lyx.org Git - lyx.git/blobdiff - src/support/ForkedCalls.cpp
* layouttranslations.review - remove dupes
[lyx.git] / src / support / ForkedCalls.cpp
index 0378b05bf1c6e7ab43e907a58cbed1c5be11dad7..d77248eadcb12bb35e45e959afbc755e38808d74 100644 (file)
@@ -303,7 +303,10 @@ int ForkedCall::generateChild()
        if (command_.empty())
                return 1;
 
-       string const line = cmd_prefix_ + command_;
+       // Make sure that a V2 python is run, if available.
+       string const line = cmd_prefix_ +
+               (prefixIs(command_, "python -tt")
+                ? os::python() + command_.substr(10) : command_);
 
 #if !defined (_WIN32)
        // POSIX