uninstall.py

branch
5_1_x
changeset 1185
d47de1d09f7c
parent 909
3a1f8622e175
child 1344
54c50e65173f
equal deleted inserted replaced
1160:5e63e3cfc980 1185:d47de1d09f7c
100 # Cleanup our config file(s) 100 # Cleanup our config file(s)
101 for name in ['eric5config.py', 'eric5config.pyc', 'eric5.pth']: 101 for name in ['eric5config.py', 'eric5config.pyc', 'eric5.pth']:
102 e5cfile = os.path.join(pyModDir, name) 102 e5cfile = os.path.join(pyModDir, name)
103 if os.path.exists(e5cfile): 103 if os.path.exists(e5cfile):
104 os.remove(e5cfile) 104 os.remove(e5cfile)
105 e5cfile = os.path.join(pyModDir, "__pycache__", name)
106 path, ext = os.path.splitext(e5cfile)
107 for f in glob.glob("{0}.*{1}".format(path, ext)):
108 os.remove(f)
105 109
106 # Cleanup the install directories 110 # Cleanup the install directories
107 for name in ['ericExamplesDir', 'ericDocDir', 'ericDTDDir', 'ericCSSDir', 111 for name in ['ericExamplesDir', 'ericDocDir', 'ericDTDDir', 'ericCSSDir',
108 'ericIconDir', 'ericPixDir', 'ericDir', 'ericTemplatesDir', 112 'ericIconDir', 'ericPixDir', 'ericTemplatesDir', 'ericCodeTemplatesDir',
109 'ericCodeTemplatesDir', 'ericOthersDir', 'ericStylesDir']: 113 'ericOthersDir', 'ericStylesDir', 'ericDir']:
110 dirpath = getConfig(name) 114 dirpath = getConfig(name)
111 if os.path.exists(dirpath): 115 if os.path.exists(dirpath):
112 shutil.rmtree(dirpath, True) 116 shutil.rmtree(dirpath, True)
113 117
114 # Cleanup translations 118 # Cleanup translations

eric ide

mercurial