Skip to content

Commit

Permalink
Use PyConfig_InitPythonConfig instead of PyConfig_InitIsolatedConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Jacobs committed Jan 27, 2023
1 parent a500f43 commit 6780e44
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/pybind11/embed.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,7 @@ inline void initialize_interpreter(bool init_signal_handlers = true,
init_signal_handlers, argc, argv, add_program_dir_to_path);
#else
PyConfig config;
PyConfig_InitIsolatedConfig(&config);
config.isolated = 0;
config.use_environment = 1;
PyConfig_InitPythonConfig(&config);
config.install_signal_handlers = init_signal_handlers ? 1 : 0;
initialize_interpreter(&config, argc, argv, add_program_dir_to_path);
#endif
Expand Down

0 comments on commit 6780e44

Please sign in to comment.