We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfc2c28 commit 6d8a89cCopy full SHA for 6d8a89c
src/core/sp_python.cpp
@@ -194,7 +194,7 @@ bool CPythonManager::Initialize( void )
194
object sys = python::import("sys");
195
196
// Only reconnect the streams if the server was launched with a console (issue #392).
197
- if (extract<bool>(sys.attr("argv").attr("__contains__")(str("-console")))) {
+ if (pCommandLine->FindParm("-console")) {
198
object io_open = python::import("io").attr("open");
199
200
object stdin_ = sys.attr("stdin");
0 commit comments