diff options
| author | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2025-04-08 22:12:02 +0200 |
|---|---|---|
| committer | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2025-04-10 14:39:09 +0200 |
| commit | 0c08eb314e613af50ce90bfc4e842a50da2cbf9f (patch) | |
| tree | ee449cf129bf170cc0aa1c1b592941ca4edd4e50 /sources/pyside6/libpyside/pyside.cpp | |
| parent | c4f60e640f831f12dfaf1042e39061428b3b876b (diff) | |
Replace Py_GetProgramFullPath by PySys_GetObject
Py_GetProgramFullPath is deprecated from 3.13 and the recommendation
is to use PySys_GetObject("executable") instead.
Pick-to: 6.9
Change-Id: Ia0b0424d6fe593343272d862b05727579fad2a86
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/libpyside/pyside.cpp')
| -rw-r--r-- | sources/pyside6/libpyside/pyside.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/libpyside/pyside.cpp b/sources/pyside6/libpyside/pyside.cpp index e3093f6e8..195c000dc 100644 --- a/sources/pyside6/libpyside/pyside.cpp +++ b/sources/pyside6/libpyside/pyside.cpp @@ -926,7 +926,7 @@ bool registerInternalQtConf() // This will disable the internal qt.conf which points to the PySide6 subdirectory (due to the // subdirectory not existing anymore). #ifndef PYPY_VERSION - QString executablePath = QString::fromWCharArray(Py_GetProgramFullPath()); + QString executablePath = QString::fromWCharArray(PyUnicode_AsWideCharString(PySys_GetObject("executable"), nullptr)); #else // PYSIDE-535: FIXME: Add this function when available. QString executablePath = QLatin1StringView("missing Py_GetProgramFullPath"); |
