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
69f5b894
Commit
69f5b894
authored
Nov 01, 2022
by
BO ZHANG
🏀
Browse files
added dm.set_env() method
parent
5db0c5fe
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
69f5b894
...
@@ -189,6 +189,13 @@ class CsstMsDataManager:
...
@@ -189,6 +189,13 @@ class CsstMsDataManager:
# aXe
# aXe
self
.
dir_bin
=
"/nfsdata/users/csstpipeline/L1Pipeline/bin"
self
.
dir_bin
=
"/nfsdata/users/csstpipeline/L1Pipeline/bin"
def
set_env
(
self
):
""" set environment variables """
if
os
.
uname
()[
1
]
==
"dandelion"
:
os
.
environ
[
"LD_LIBRARY_PATH"
]
=
"/nfsdata/users/csstpipeline/L1Pipeline/bin/axe"
else
:
os
.
environ
[
"LD_LIBRARY_PATH"
]
=
""
@
property
@
property
def
dfs_node
(
self
):
def
dfs_node
(
self
):
return
self
.
_dfs_node
return
self
.
_dfs_node
...
...
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