Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Nov 19, 2019
1 parent e629ca0 commit 8dfd52a
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -136,11 +136,10 @@ void PythonQtSupportPlugin::initializePlugin()
// results in an empty string

auto wSetPythonPathScript = setPythonPathScript.toStdWString();
mArgV[0] = const_cast<wchar_t *>(wSetPythonPathScript.c_str());

auto wPythonHome = pythonHome.toStdWString();
mArgV[1] = const_cast<wchar_t *>(wPythonHome.c_str());

mArgV[0] = const_cast<wchar_t *>(wSetPythonPathScript.c_str());
mArgV[1] = const_cast<wchar_t *>(wPythonHome.c_str());
mArgV[2] = const_cast<wchar_t *>(L"-s");
mArgV[3] = nullptr;

Expand All @@ -154,6 +153,7 @@ void PythonQtSupportPlugin::initializePlugin()

mArgV[0] = const_cast<wchar_t *>(L"");
mArgV[1] = nullptr;

PySys_SetArgvEx(1, mArgV, 0);
}

Expand Down

0 comments on commit 8dfd52a

Please sign in to comment.