]> git.lyx.org Git - features.git/commitdiff
Fix bug #8631: Python detection unfinished
authorEnrico Forestieri <forenr@lyx.org>
Sun, 14 Apr 2013 11:43:53 +0000 (13:43 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 14 Apr 2013 11:44:59 +0000 (13:44 +0200)
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