X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2FForkedCalls.cpp;h=d77248eadcb12bb35e45e959afbc755e38808d74;hb=faa87bf9f30b943397429a04254d96963bbf38bc;hp=0378b05bf1c6e7ab43e907a58cbed1c5be11dad7;hpb=aafd52f44167d5510be1ddcb974daa9dae486933;p=lyx.git diff --git a/src/support/ForkedCalls.cpp b/src/support/ForkedCalls.cpp index 0378b05bf1..d77248eadc 100644 --- a/src/support/ForkedCalls.cpp +++ b/src/support/ForkedCalls.cpp @@ -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