Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_common
Commits
2e63250d
Commit
2e63250d
authored
Dec 27, 2025
by
BO ZHANG
🏀
Browse files
use sys.argv[1] for Pipeline initialization
parent
287920fd
Pipeline
#11637
passed with stage
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
csst_common/pipeline.py
View file @
2e63250d
...
...
@@ -12,6 +12,7 @@ Modified-History:
2025-12-27, Bo Zhang, rewrite Pipeline class
"""
import
sys
import
json
import
subprocess
import
os
...
...
@@ -64,12 +65,12 @@ class Pipeline:
{'a': 1}
"""
def
__init__
(
self
,
msg
:
str
=
""
,
**
env_vars
:
Any
):
def
__init__
(
self
,
**
env_vars
:
Any
):
# record start time
self
.
t_start
=
Time
.
now
()
# set message
self
.
msg
=
msg
self
.
msg
=
sys
.
argv
[
1
]
self
.
msg_dict
=
self
.
json2dict
(
self
.
msg
)
# set environment variables
...
...
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