We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a500f43 commit c518c50Copy full SHA for c518c50
include/pybind11/embed.h
@@ -198,9 +198,11 @@ inline void initialize_interpreter(bool init_signal_handlers = true,
198
init_signal_handlers, argc, argv, add_program_dir_to_path);
199
#else
200
PyConfig config;
201
- PyConfig_InitIsolatedConfig(&config);
202
- config.isolated = 0;
203
- config.use_environment = 1;
+ PyConfig_InitPythonConfig(&config);
+ // Don't parse arguments the way regular python parses command line arguments, because the
+ // arguments will be manually set in initialize_interpreter().
204
+ config.parse_argv = 0;
205
+
206
config.install_signal_handlers = init_signal_handlers ? 1 : 0;
207
initialize_interpreter(&config, argc, argv, add_program_dir_to_path);
208
#endif
0 commit comments