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 a500f43 commit 0ed72f4Copy full SHA for 0ed72f4
include/pybind11/embed.h
@@ -198,9 +198,10 @@ 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);
+ // See PR #4473 for background
+ config.parse_argv = 0;
204
+
205
config.install_signal_handlers = init_signal_handlers ? 1 : 0;
206
initialize_interpreter(&config, argc, argv, add_program_dir_to_path);
207
#endif
0 commit comments