179 "ericDir", |
179 "ericDir", |
180 ]: |
180 ]: |
181 with contextlib.suppress(AttributeError): |
181 with contextlib.suppress(AttributeError): |
182 dirpath = getConfig(name) |
182 dirpath = getConfig(name) |
183 if os.path.exists(dirpath): |
183 if os.path.exists(dirpath): |
184 shutil.rmtree(dirpath, True) |
184 shutil.rmtree(dirpath, ignore_errors=True) |
185 |
185 |
186 # Cleanup translations |
186 # Cleanup translations |
187 for name in glob.glob( |
187 for name in glob.glob( |
188 os.path.join(getConfig("ericTranslationsDir"), "eric7_*.qm") |
188 os.path.join(getConfig("ericTranslationsDir"), "eric7_*.qm") |
189 ): |
189 ): |