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

@@ -266,7 +266,7 @@ int main(int argc, char** argv)
"Python version information:\n%4\n")
.arg(appName,
QString::fromUtf8(e.what()),
QString::fromUtf8(Py_EncodeLocale(Py_GetPath(), nullptr)),
QString::fromStdString(Base::Interpreter().getPythonPath()),
QString::fromLatin1(Py_GetVersion()));
const char* pythonhome = getenv("PYTHONHOME");
if (pythonhome) {