Values of argc and argv transfers to python environment.
This commit is contained in:
parent
101b68b610
commit
5e1605af19
|
@ -145,6 +145,7 @@ bool pcbnewInitPythonScripting( const char * aUserScriptingPath )
|
|||
swigSwitchPythonBuiltin(); // switch the python builtin modules to our new list
|
||||
|
||||
Py_Initialize();
|
||||
PySys_SetArgv(Pgm().App().argc, Pgm().App().argv);
|
||||
|
||||
#ifdef KICAD_SCRIPTING_WXPYTHON
|
||||
PyEval_InitThreads();
|
||||
|
|
Loading…
Reference in New Issue