This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pjaggi1
Recipients pjaggi1
Date 2022-02-08.17:39:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1644341949.29.0.882181976417.issue46682@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2022-02-08 17:39:09pjaggi1setrecipients: + pjaggi1
2022-02-08 17:39:09pjaggi1setmessageid: <1644341949.29.0.882181976417.issue46682@roundup.psfhosted.org>
2022-02-08 17:39:09pjaggi1linkissue46682 messages
2022-02-08 17:39:09pjaggi1create