Message412848
Have the following simple program:
#include <iostream>
#include <Python.h>
using namespace std;
int main(int argc, char** argv) {
wchar_t* args[argc];
for(int i = 0; i < argc; ++i) {
args[i] = Py_DecodeLocale(argv[i], nullptr);
}
Py_Initialize();
const int exit_code = Py_Main(argc, args);
cout << "Exit code: " << exit_code << endl;
cout << "press any key to exit" << endl;
cin.get();
return 0;
}
When you run this program and in the console:
import sys
sys.path
for Python versions between 3.7-3.9, you get the installed python site-packages by default. For Python 3.10, you don't. This happens on both windows and Mac. Is this an intentional change? |
|
Date |
User |
Action |
Args |
2022-02-08 17:39:09 | pjaggi1 | set | recipients:
+ pjaggi1 |
2022-02-08 17:39:09 | pjaggi1 | set | messageid: <1644341949.29.0.882181976417.issue46682@roundup.psfhosted.org> |
2022-02-08 17:39:09 | pjaggi1 | link | issue46682 messages |
2022-02-08 17:39:09 | pjaggi1 | create | |
|