studio: hide Python traceback when setup script exits with error
This commit is contained in:
parent
25fc760b0f
commit
8d0cf44aa3
1 changed files with 5 additions and 3 deletions
|
|
@ -145,9 +145,11 @@ def setup():
|
|||
raise typer.Exit(1)
|
||||
|
||||
if platform.system() == "Windows":
|
||||
subprocess.run(
|
||||
result = subprocess.run(
|
||||
["powershell", "-ExecutionPolicy", "Bypass", "-File", str(script)],
|
||||
check = True,
|
||||
)
|
||||
else:
|
||||
subprocess.run(["bash", str(script)], check = True)
|
||||
result = subprocess.run(["bash", str(script)])
|
||||
|
||||
if result.returncode != 0:
|
||||
raise typer.Exit(result.returncode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue