|
@@ -185,7 +185,7 @@ int CPythonExecutor::RunScriptProcess()
|
|
|
// 强制stdion, stdout和stderr完全无缓冲:python -u
|
|
|
TCHAR szCommandLine[MAX_PATH] = { 0 };
|
|
|
if (_tcslen(m_szExtraSentence))
|
|
|
- _stprintf_s(szCommandLine, _T("python -W ignore -u \"%s\" %s"), m_szScriptPath, m_szExtraSentence);
|
|
|
+ _stprintf_s(szCommandLine, _T("python -W ignore -u \"%s\" \"%s\""), m_szScriptPath, m_szExtraSentence);
|
|
|
else
|
|
|
_stprintf_s(szCommandLine, _T("python -W ignore -u \"%s\""), m_szScriptPath);
|
|
|
|
|
@@ -344,7 +344,7 @@ int CPythonExecutor::ServiceRunScriptProcess()
|
|
|
// 强制stdion, stdout和stderr完全无缓冲:python -u
|
|
|
TCHAR szCommandLine[MAX_PATH] = { 0 };
|
|
|
if (_tcslen(m_szExtraSentence))
|
|
|
- _stprintf_s(szCommandLine, _T("python -W ignore -u \"%s\" %s"), m_szScriptPath, m_szExtraSentence);
|
|
|
+ _stprintf_s(szCommandLine, _T("python -W ignore -u \"%s\" \"%s\""), m_szScriptPath, m_szExtraSentence);
|
|
|
else
|
|
|
_stprintf_s(szCommandLine, _T("python -W ignore -u \"%s\""), m_szScriptPath);
|
|
|
|