diff --git a/Tests/Functional/TestMachinery/TestUtils.cpp b/Tests/Functional/TestMachinery/TestUtils.cpp index 175b76a82e51ee77b28acba7b8969f236956f35f..55113b24bb6f3235997e49ef529c9ac7099a4b74 100644 --- a/Tests/Functional/TestMachinery/TestUtils.cpp +++ b/Tests/Functional/TestMachinery/TestUtils.cpp @@ -58,7 +58,7 @@ bool TestUtils::runPython(const std::string& py_command) std::string("NOPLOT=TRUE") + " " + BABuild::pythonExecutable() + " -B " + py_command; #else std::string sys_command = std::string("set PYTHONPATH=") + BABuild::buildLibDir() + " & " + - std::string("set NOPLOT=TRUE") + " & " +BABuild::pythonExecutable() + " -B " + py_command; + std::string("set NOPLOT=TRUE") + " & \"" +BABuild::pythonExecutable() + "\" -B " + py_command; #endif std::cout << sys_command << std::endl/*sic*/; // flush output before calling std::system int ret = std::system(sys_command.c_str());