--- a/scripts/install.py Sat Dec 11 16:04:36 2021 +0100 +++ b/scripts/install.py Sat Dec 11 16:47:26 2021 +0100 @@ -539,8 +539,9 @@ 'ericTemplatesDir', 'ericCodeTemplatesDir', 'ericOthersDir', 'ericStylesDir', 'ericThemesDir', 'ericDir']: - if os.path.exists(getConfig(name)): - shutil.rmtree(getConfig(name), True) + with contextlib.suppress(AttributeError): + if os.path.exists(getConfig(name)): + shutil.rmtree(getConfig(name), True) # Cleanup translations for name in glob.glob( @@ -761,7 +762,7 @@ copyTree( os.path.join(eric7SourceDir, "Themes"), cfg['ericThemesDir'], - ['*.qss', '*.ethj']) + ['*.ethj']) copyTree( os.path.join(eric7SourceDir, "i18n"), cfg['ericTranslationsDir'],