Skip to content

Commit

Permalink
- correct erroneously commented code in initSysArgv which fails in de…
Browse files Browse the repository at this point in the history
…bug mode

- removed doubled entry in .gitignore
  • Loading branch information
chcg committed Jan 4, 2024
1 parent 4d3b8d1 commit b1b3b1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Debug/
Release/
PythonDebug/
x64/
packages/
ipch/
*.pyc
_ReSharper.*/
Expand Down
4 changes: 2 additions & 2 deletions PythonScript/src/PythonHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ void PythonHandler::initSysArgv()
argvList.append(boost::python::handle<>(unicodeArg));
}

//boost::python::object sysModule(boost::python::handle<>(boost::python::borrowed(PyImport_AddModule("sys"))));
//sysModule.attr("argv") = argvList;
boost::python::object sysModule(boost::python::handle<>(boost::python::borrowed(PyImport_AddModule("sys"))));
sysModule.attr("argv") = argvList;


}
Expand Down

0 comments on commit b1b3b1e

Please sign in to comment.