Message384907
Python has an unit test on Py_SetPath(): test_embed.test_init_setpath.
> Write following code that only call Py_Initialize(): (...)
Do you mean that on Windows Python looks for modules in C:\Lib\ just by calling Py_Initialize()?
> According to https://docs.python.org/3/c-api/init.html: "Py_SetPath() set the default module search path.
I don't understand. Do you have your issue with and without calling Py_SetPath()? Can you please provide an example of code reproducing the issue? |
|
Date |
User |
Action |
Args |
2021-01-12 10:04:02 | vstinner | set | recipients:
+ vstinner, paul.moore, christian.heimes, tim.golden, zach.ware, steve.dower, houjingyi233 |
2021-01-12 10:04:02 | vstinner | set | messageid: <1610445842.35.0.626446754432.issue42902@roundup.psfhosted.org> |
2021-01-12 10:04:02 | vstinner | link | issue42902 messages |
2021-01-12 10:04:02 | vstinner | create | |
|