diff --git a/.gitignore b/.gitignore index 32c9bf88d..c95a4cd30 100644 --- a/.gitignore +++ b/.gitignore @@ -32,6 +32,7 @@ cache *.lock *.zip *.rar +*.7z *.pyc /*.bat /*.sh diff --git a/installer.py b/installer.py index 8b571d02d..c36382ded 100644 --- a/installer.py +++ b/installer.py @@ -603,7 +603,7 @@ def list_extensions_folder(folder, quiet=False): if disabled_extensions_all != 'none': return [] disabled_extensions = opts.get('disabled_extensions', []) - enabled_extensions = [x for x in os.listdir(folder) if x not in disabled_extensions and not x.startswith('.')] + enabled_extensions = [x for x in os.listdir(folder) if os.path.isdir(os.path.join(folder, x)) and x not in disabled_extensions and not x.startswith('.')] if not quiet: log.info(f'Extensions: enabled={enabled_extensions} {name}') return enabled_extensions