Modified install script to ignore an issue creating the APIs directory (in case environment was created with --system-site-packages). eric7

Sat, 09 Nov 2024 13:28:47 +0100

author
Detlev Offenbachs <detlev@die-offenbachs.de>
date
Sat, 09 Nov 2024 13:28:47 +0100
branch
eric7
changeset 11043
8cfceca767e1
parent 11042
d6fce9475dfa
child 11044
6d9f0f28de34

Modified install script to ignore an issue creating the APIs directory (in case environment was created with --system-site-packages).

scripts/install.py file | annotate | diff | comparison | revisions
--- a/scripts/install.py	Wed Nov 06 19:19:29 2024 +0100
+++ b/scripts/install.py	Sat Nov 09 13:28:47 2024 +0100
@@ -760,7 +760,11 @@
         # make the install directories
         for key in cfg:
             if cfg[key] and not os.path.isdir(cfg[key]):
-                os.makedirs(cfg[key])
+                try:
+                    os.makedirs(cfg[key])
+                except OSError:
+                    if key != "apidir":
+                        raise
 
         # copy the eric config file
         if distDir:

eric ide

mercurial