diff --git a/startup_scripts/__main__.py b/startup_scripts/__main__.py index 343ca95..c41bba6 100644 --- a/startup_scripts/__main__.py +++ b/startup_scripts/__main__.py @@ -11,7 +11,13 @@ def filename(f): with scandir(dirname(abspath(__file__))) as it: for f in sorted(it, key = filename): - if f.name.startswith('__') or not f.is_file(): + if not f.is_file(): + continue + + if f.name.startswith('__'): + continue + + if not f.name.endswith('.py'): continue print(f"▶️ Running the startup script {f.path}")