eric7/Globals/__init__.py

branch
eric7
changeset 8501
7b5f10581c35
parent 8468
57ed532d4cde
child 8546
52454036c2b2
--- a/eric7/Globals/__init__.py	Fri Jul 30 17:40:58 2021 +0200
+++ b/eric7/Globals/__init__.py	Fri Jul 30 20:13:09 2021 +0200
@@ -11,10 +11,10 @@
 # Note: Do not import any eric stuff in here!!!!!!!
 #
 
-import sys
+import contextlib
 import os
 import re
-import contextlib
+import sys
 
 from PyQt6.QtCore import (
     QDir, QByteArray, QCoreApplication, QT_VERSION, QProcess, qVersion
@@ -245,8 +245,8 @@
     @return path to the Python library directory
     @rtype str
     """
-    import distutils.sysconfig
-    return distutils.sysconfig.get_python_lib(True)
+    import sysconfig
+    return sysconfig.get_path('platlib')
 
 
 def getPyQt6ModulesDirectory():
@@ -256,9 +256,9 @@
     @return path to the PyQt6 modules directory
     @rtype str
     """
-    import distutils.sysconfig
+    import sysconfig
     
-    pyqtPath = os.path.join(distutils.sysconfig.get_python_lib(True), "PyQt6")
+    pyqtPath = os.path.join(sysconfig.get_path('platlib'), "PyQt6")
     if os.path.exists(pyqtPath):
         return pyqtPath
     

eric ide

mercurial