scripts/install.py

branch
eric7
changeset 8821
0485c183b718
parent 8820
149f941d072e
child 8881
54e42bc2437a
--- 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'],

eric ide

mercurial