scripts/uninstall.py

branch
eric7-maintenance
changeset 10101
34f74c19ed7a
parent 9832
3885b9d7bd31
parent 10091
ac6edcfe7831
child 10272
7ae72d1df070
--- a/scripts/uninstall.py	Sun May 28 14:40:38 2023 +0200
+++ b/scripts/uninstall.py	Sun Jul 02 17:39:33 2023 +0200
@@ -89,6 +89,15 @@
     global pyModDir
 
     pyModDir = sysconfig.get_path("platlib")
+    if not os.access(pyModDir, os.W_OK):
+        # can't write to the standard path, use the 'user' path instead
+        if sys.platform.startswith(("win", "cygwin")):
+            scheme = "nt_user"
+        elif sys.platform == "darwin":
+            scheme = "osx_framework_user"
+        else:
+            scheme = "posix_user"
+        pyModDir = sysconfig.get_path("platlib", scheme)
 
 
 def wrapperNames(dname, wfile):
@@ -134,6 +143,7 @@
         "eric7_iconeditor",
         "eric7_ide",
         "eric7_pdf",
+        "eric7_pip",
         "eric7_plugininstall",
         "eric7_pluginrepository",
         "eric7_pluginuninstall",

eric ide

mercurial