Commit 02baf1ad authored by Eric Duminil's avatar Eric Duminil
Browse files

Chdir to SimStadt before starting GUI

parent e904c345
......@@ -6,6 +6,8 @@ import re
import subprocess
import sys
from pathlib import Path
from .utils import chdir
def cmd_info(args: argparse.Namespace) -> None:
......@@ -19,7 +21,8 @@ def cmd_info(args: argparse.Namespace) -> None:
if args.gui:
print(f"Launching SimStadt GUI from {folder} ...", file=sys.stderr)
subprocess.Popen([_simstadt_script()], cwd=folder)
with chdir(folder):
subprocess.Popen([_simstadt_script()])
return
print("simstadt - Python library for SimStadt workflows.")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment