Commit 712d8056 authored by Nikita Sirgienko's avatar Nikita Sirgienko
Browse files

Fix problem with Python server on Windows. This commit makes python backend workable on Windows

parent 0c6d59db
......@@ -76,7 +76,12 @@ void PythonSession::login()
m_process = new QProcess(this);
m_process->setProcessChannelMode(QProcess::ForwardedErrorChannel);
#ifdef Q_OS_WIN
// On Windows QProcess can't handle paths with spaces, so add escaping
m_process->start(QLatin1String("\"") + PythonSettings::pythonServerPath().toLocalFile() + QLatin1String("\""));
#else
m_process->start(PythonSettings::pythonServerPath().toLocalFile());
#endif
m_process->waitForStarted();
m_process->waitForReadyRead();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment