Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christoph Arthofer
ms_templates
Commits
a877cb50
Commit
a877cb50
authored
Apr 22, 2021
by
Christoph Arthofer
Browse files
fslsub
parent
9a53aedb
Changes
1
Hide whitespace changes
Inline
Side-by-side
run_template_construction.py
View file @
a877cb50
...
...
@@ -517,7 +517,7 @@ def submitJob(name, log_dir, queue, wait_for=[], script=None, command=None, copr
if
script
is
not
None
and
os
.
path
.
exists
(
script
):
cmd
+=
' -t '
+
script
elif
command
is
not
None
:
cmd
+=
shlex
.
split
(
command
)
cmd
+=
' "'
+
command
+
'"'
# stream = os.popen(cmd)
# job_id = stream.read()
...
...
@@ -525,7 +525,7 @@ def submitJob(name, log_dir, queue, wait_for=[], script=None, command=None, copr
print
(
cmd
)
try
:
result
=
subprocess
.
run
(
cmd
,
capture_output
=
True
,
text
=
True
,
check
=
True
)
result
=
subprocess
.
run
(
shlex
.
split
(
cmd
)
,
capture_output
=
True
,
text
=
True
,
check
=
True
)
except
subprocess
.
CalledProcessError
as
e
:
print
(
str
(
e
),
file
=
sys
.
stderr
)
return
None
...
...
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