uninstall.py

branch
5_1_x
changeset 1185
d47de1d09f7c
parent 909
3a1f8622e175
child 1344
54c50e65173f
--- a/uninstall.py	Sat Jul 02 14:59:45 2011 +0200
+++ b/uninstall.py	Sat Jul 02 15:47:49 2011 +0200
@@ -102,11 +102,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']:
         dirpath = getConfig(name)
         if os.path.exists(dirpath):
             shutil.rmtree(dirpath, True)

eric ide

mercurial