Main: Replace uses of Py_GetPath()

Deprecated in Python 3.13
This commit is contained in:
Chris Hennes
2025-03-22 18:42:06 -05:00
parent 5941c7e0ba
commit cc99d12135
2 changed files with 2 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ int main(int argc, char** argv)
msg << "While initializing " << appName << " the following exception occurred: '"
<< e.what() << "'\n\n";
msg << "Python is searching for its runtime files in the following directories:\n"
<< Py_EncodeLocale(Py_GetPath(), nullptr) << "\n\n";
<< Base::Interpreter().getPythonPath() << "\n\n";
msg << "Python version information:\n" << Py_GetVersion() << "\n";
const char* pythonhome = getenv("PYTHONHOME");
if (pythonhome) {