summaryrefslogtreecommitdiffstats
path: root/dilos/libraries/pytde/debian/pytdeconfig.py
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2024-01-28 11:05:00 +0100
committerSlávek Banko <slavek.banko@axis.cz>2024-01-31 13:16:36 +0100
commit0430957886fc800058c7a55f5aab01de36f39eaf (patch)
tree464c64b047d3872a9ee1f6979939913de6ffaa07 /dilos/libraries/pytde/debian/pytdeconfig.py
parent598ef9e753142bb4ddcc279d4870996a4d130e90 (diff)
downloadtde-packaging-0430957886fc800058c7a55f5aab01de36f39eaf.tar.gz
tde-packaging-0430957886fc800058c7a55f5aab01de36f39eaf.zip
DEB pytde: Fix support for multiple Python3 installed in parallel.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 639b8c3e80778124458d61ba546a16d1c7661b3d)
Diffstat (limited to 'dilos/libraries/pytde/debian/pytdeconfig.py')
-rw-r--r--dilos/libraries/pytde/debian/pytdeconfig.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/dilos/libraries/pytde/debian/pytdeconfig.py b/dilos/libraries/pytde/debian/pytdeconfig.py
index 4536b9ff5..c12c20788 100644
--- a/dilos/libraries/pytde/debian/pytdeconfig.py
+++ b/dilos/libraries/pytde/debian/pytdeconfig.py
@@ -1,11 +1,17 @@
# import the sipconfig.py for the normal or the debug build
+import os
import sys
+import sysconfig
+
+sys.path.insert(0, os.path.join(sysconfig.get_path('platstdlib'), 'dist-packages'))
if 'd' in sys.abiflags:
try:
from pytdeconfig_d import *
+ from pytdeconfig_d import _pkg_config, _default_macros
except ImportError as msg:
- raise ImportError('No module named pytdeconfig; package python-trinity-dbg not installed')
+ raise ImportError('No module named pytdeconfig; package python3-pytde-dbg not installed')
else:
from pytdeconfig_nd import *
+ from pytdeconfig_nd import _pkg_config, _default_macros