From f6ca8350cde26c90391e29fad16437f7b3287092 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 14 Apr 2013 13:43:53 +0200 Subject: [PATCH] Fix bug #8631: Python detection unfinished --- src/support/ForkedCalls.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.2