Thanks to visit codestin.com Credit goes to github.com
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 7d0e695 commit f4b49a3Copy full SHA for f4b49a3
matplotlibcpp.h
@@ -153,6 +153,11 @@ struct _interpreter {
153
Py_SetProgramName(name);
154
Py_Initialize();
155
156
+ wchar_t const *dummy_args[] = {L"Python", NULL}; // const is needed because literals must not be modified
157
+ wchar_t const **argv = dummy_args;
158
+ int argc = sizeof(dummy_args)/sizeof(dummy_args[0])-1;
159
+ PySys_SetArgv(argc, const_cast<wchar_t **>(argv));
160
+
161
#ifndef WITHOUT_NUMPY
162
import_numpy(); // initialize numpy C-API
163
#endif
0 commit comments