We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f38ca0 + 77feec3 commit fd87c7cCopy full SHA for fd87c7c
startup_scripts/__main__.py
@@ -13,6 +13,11 @@ def filename(f):
13
for f in sorted(it, key = filename):
14
if f.name.startswith('__') or not f.is_file():
15
continue
16
-
17
- print(f"Running {f.path}")
18
- runpy.run_path(f.path)
+
+ print(f"▶️ Running the startup script {f.path}")
+ try:
19
+ runpy.run_path(f.path)
20
+ except SystemExit as e:
21
+ if e.code is not None and e.code != 0:
22
+ print(f"‼️ The startup script {f.path} returned with code {e.code}, exiting.")
23
+ raise
0 commit comments