Values of argc and argv transfers to python environment.

This commit is contained in:
Baranovskiy Konstantin 2018-07-06 20:38:11 +03:00 committed by jean-pierre charras
parent 101b68b610
commit 5e1605af19
1 changed files with 1 additions and 0 deletions

View File

@ -145,6 +145,7 @@ bool pcbnewInitPythonScripting( const char * aUserScriptingPath )
swigSwitchPythonBuiltin(); // switch the python builtin modules to our new list swigSwitchPythonBuiltin(); // switch the python builtin modules to our new list
Py_Initialize(); Py_Initialize();
PySys_SetArgv(Pgm().App().argc, Pgm().App().argv);
#ifdef KICAD_SCRIPTING_WXPYTHON #ifdef KICAD_SCRIPTING_WXPYTHON
PyEval_InitThreads(); PyEval_InitThreads();