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 2c89944Copy full SHA for 2c89944
include/pybind11/embed.h
@@ -198,9 +198,14 @@ 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);
+ config.dev_mode = 0;
+ config.safe_path = 1;
204
+ config.configure_c_stdio = 0;
205
+ config.faulthandler = 0;
206
+ config.pathconfig_warnings = 0;
207
+ config.tracemalloc = 0;
208
+ config.user_site_directory = 0;
209
config.install_signal_handlers = init_signal_handlers ? 1 : 0;
210
initialize_interpreter(&config, argc, argv, add_program_dir_to_path);
211
#endif
0 commit comments