Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SimStadt
simstadtpy
Commits
02baf1ad
Commit
02baf1ad
authored
Mar 25, 2026
by
Eric Duminil
Browse files
Chdir to SimStadt before starting GUI
parent
e904c345
Changes
1
Show whitespace changes
Inline
Side-by-side
src/simstadt/cli.py
View file @
02baf1ad
...
...
@@ -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."
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment