Skip to content

Commit

Permalink
Sys.Path (still) missing some directories in latest 3.0.17 version #322
Browse files Browse the repository at this point in the history
changed site_import and user_site_directory to overcome the changes introduced with update from python 3.10 -> 3.12 and changed config handling
  • Loading branch information
chcg committed Apr 9, 2024
1 parent d4a73d2 commit 0fc150c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PythonScript/src/PythonHandler.cpp
Expand Up @@ -97,9 +97,9 @@ void PythonHandler::initPython()
// Don't import site - if Python 2.7 doesn't find it as part of Py_Initialize,
// it does an exit(1) - AGH!
// unclear if this is still the case with python 3.12
config.site_import = 0;
config.site_import = 1;
config.use_environment = 0;
config.user_site_directory = 0;
config.user_site_directory = 1;

#ifdef _DEBUG
config.verbose = 1;
Expand Down

0 comments on commit 0fc150c

Please sign in to comment.