Skip to content

Commit 0fc150c

Browse files
committed
Sys.Path (still) missing some directories in latest 3.0.17 version #322
changed site_import and user_site_directory to overcome the changes introduced with update from python 3.10 -> 3.12 and changed config handling
1 parent d4a73d2 commit 0fc150c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PythonScript/src/PythonHandler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ void PythonHandler::initPython()
9797
// Don't import site - if Python 2.7 doesn't find it as part of Py_Initialize,
9898
// it does an exit(1) - AGH!
9999
// unclear if this is still the case with python 3.12
100-
config.site_import = 0;
100+
config.site_import = 1;
101101
config.use_environment = 0;
102-
config.user_site_directory = 0;
102+
config.user_site_directory = 1;
103103

104104
#ifdef _DEBUG
105105
config.verbose = 1;

0 commit comments

Comments
 (0)