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
809338b2
Commit
809338b2
authored
Mar 12, 2026
by
Eric Duminil
Browse files
Show date
parent
068569a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/simstadt/__init__.py
View file @
809338b2
...
...
@@ -43,9 +43,9 @@ def main() -> None:
return
output
=
get_simstadt_output
(
folder
)
m
=
re
.
search
(
r
"Launching SimStadt (\S+) \((\w+), rev\. (\w+), (\d
+
)\)"
,
output
)
m
=
re
.
search
(
r
"Launching SimStadt (\S+) \((\w+), rev\. (\w+), (\d
\d\d\d)(\d\d)(\d\d
)\)"
,
output
)
if
m
:
version
,
branch
,
commit
,
date
=
m
.
groups
()
print
(
f
"SimStadt version:
{
version
}
(branch:
{
branch
}
, rev:
{
commit
}
, date:
{
date
}
)"
)
version
,
branch
,
commit
,
yyyy
,
mm
,
dd
=
m
.
groups
()
print
(
f
"SimStadt version:
{
version
}
(branch:
{
branch
}
, rev:
{
commit
}
, date:
{
yyyy
}
-
{
mm
}
-
{
dd
}
)"
)
else
:
print
(
"SimStadt version: unknown (could not parse version string)"
)
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