scripts/install-debugclients.py

branch
eric7
changeset 8501
7b5f10581c35
parent 8314
e3642a6a1e71
child 8881
54e42bc2437a
--- a/scripts/install-debugclients.py	Fri Jul 30 17:40:58 2021 +0200
+++ b/scripts/install-debugclients.py	Fri Jul 30 20:13:09 2021 +0200
@@ -11,14 +11,14 @@
 Installation script for the eric debug clients.
 """
 
+import compileall
+import contextlib
+import fnmatch
 import io
-import sys
 import os
 import re
-import compileall
 import shutil
-import fnmatch
-import contextlib
+import sys
 
 # Define the globals.
 progName = None
@@ -86,13 +86,9 @@
     """
     global modDir, pyModDir
     
-    try:
-        import distutils.sysconfig
-    except ImportError:
-        print("Please install the 'distutils' package first.")
-        exit(5)
+    import sysconfig
 
-    modDir = distutils.sysconfig.get_python_lib(True)
+    modDir = sysconfig.get_path('platlib')
     pyModDir = modDir
 
 

eric ide

mercurial