install.py

branch
5_1_x
changeset 1185
d47de1d09f7c
parent 1116
ba7dd484ce98
child 1189
946daca989b5
--- a/install.py	Sat Jul 02 14:59:45 2011 +0200
+++ b/install.py	Sat Jul 02 15:47:49 2011 +0200
@@ -313,11 +313,15 @@
         e5cfile = os.path.join(pyModDir, name)
         if os.path.exists(e5cfile):
             os.remove(e5cfile)
+        e5cfile = os.path.join(pyModDir, "__pycache__", name)
+        path, ext = os.path.splitext(e5cfile)
+        for f in glob.glob("{0}.*{1}".format(path, ext)):
+            os.remove(f)
         
     # Cleanup the install directories
     for name in ['ericExamplesDir', 'ericDocDir', 'ericDTDDir', 'ericCSSDir',
-                 'ericIconDir', 'ericPixDir', 'ericDir', 'ericTemplatesDir',
-                 'ericCodeTemplatesDir', 'ericOthersDir', 'ericStylesDir']:
+                 'ericIconDir', 'ericPixDir', 'ericTemplatesDir', 'ericCodeTemplatesDir',
+                 'ericOthersDir', 'ericStylesDir', 'ericDir']:
         if os.path.exists(getConfig(name)):
             shutil.rmtree(getConfig(name), True)
     

eric ide

mercurial