uninstall.py

changeset 1161
ddab52aa1a6b
parent 945
8cd4d08fa9f6
child 1343
5487f13ffae5
--- a/uninstall.py	Sat Jul 02 14:59:45 2011 +0200
+++ b/uninstall.py	Sat Jul 02 15:47:49 2011 +0200
@@ -103,11 +103,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