Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
28eb8530
Commit
28eb8530
authored
Mar 13, 2025
by
Ziqi Fan
Committed by
GitHub
Mar 13, 2025
Browse files
refactor: update dynamo run cmd to hint user to install dynamo-run when missing (#143)
parent
3d292851
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
deploy/dynamo/sdk/src/dynamo/sdk/cli/run.py
deploy/dynamo/sdk/src/dynamo/sdk/cli/run.py
+15
-1
No files found.
deploy/dynamo/sdk/src/dynamo/sdk/cli/run.py
View file @
28eb8530
...
...
@@ -15,6 +15,7 @@
from
__future__
import
annotations
import
shutil
import
subprocess
import
sys
...
...
@@ -36,8 +37,21 @@ def build_run_command() -> click.Group:
)
def
run
()
->
None
:
"""Call dynamo-run with remaining arguments"""
# Check if dynamo-run is available in PATH
if
shutil
.
which
(
"dynamo-run"
)
is
None
:
click
.
echo
(
"Error: 'dynamo-run' is needed but not found.
\n
"
"Please install it using: cargo install dynamo-run"
,
err
=
True
,
)
sys
.
exit
(
1
)
command
=
[
"dynamo-run"
]
+
sys
.
argv
[
2
:]
try
:
subprocess
.
run
(
command
)
except
Exception
as
e
:
click
.
echo
(
f
"Error executing dynamo-run:
{
str
(
e
)
}
"
,
err
=
True
)
sys
.
exit
(
1
)
return
cli
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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