uninstall.py

changeset 3697
c947a7eaace4
parent 3678
2866383fd342
child 3714
4080395e3426
equal deleted inserted replaced
3693:983904b9568f 3697:c947a7eaace4
161 apiname = os.path.join(apidir, progLanguage.lower(), name) 161 apiname = os.path.join(apidir, progLanguage.lower(), name)
162 if os.path.exists(apiname): 162 if os.path.exists(apiname):
163 os.remove(apiname) 163 os.remove(apiname)
164 for apiname in glob.glob( 164 for apiname in glob.glob(
165 os.path.join(apidir, progLanguage.lower(), "*.bas")): 165 os.path.join(apidir, progLanguage.lower(), "*.bas")):
166 os.remove(apiname) 166 if os.path.basename(apiname) != "eric5.bas":
167 os.remove(apiname)
167 168
168 if sys.platform == "darwin": 169 if sys.platform == "darwin":
169 # delete the Mac app bundle 170 # delete the Mac app bundle
170 if os.path.exists("/Developer/Applications/Eric6"): 171 if os.path.exists("/Developer/Applications/Eric6"):
171 shutil.rmtree("/Developer/Applications/Eric6") 172 shutil.rmtree("/Developer/Applications/Eric6")

eric ide

mercurial