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
e0ce912f
Commit
e0ce912f
authored
Nov 03, 2022
by
BO ZHANG
🏀
Browse files
added dm.set_env()
parent
69f5b894
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
e0ce912f
...
@@ -187,14 +187,16 @@ class CsstMsDataManager:
...
@@ -187,14 +187,16 @@ class CsstMsDataManager:
# self.l1api = Level1DataApi()
# self.l1api = Level1DataApi()
# aXe
# aXe
self
.
dir_bin
=
"/nfsdata/users/csstpipeline/L1Pipeline/bin"
self
.
set_env
()
def
set_env
(
self
):
def
set_env
(
self
):
""" set environment variables """
""" set environment variables """
if
os
.
uname
()[
1
]
==
"dandelion"
:
if
os
.
uname
()[
1
]
==
"dandelion"
:
os
.
environ
[
"LD_LIBRARY_PATH"
]
=
"/nfsdata/users/csstpipeline/L1Pipeline/bin/axe"
os
.
environ
[
"LD_LIBRARY_PATH"
]
=
"/home/csstpipeline/anaconda3/lib"
os
.
environ
[
"AXE_BINDIR"
]
=
"/home/csstpipeline/PycharmProjects/axe/cextern/src"
else
:
else
:
os
.
environ
[
"LD_LIBRARY_PATH"
]
=
""
os
.
environ
[
"LD_LIBRARY_PATH"
]
=
""
os
.
environ
[
"AXE_BINDIR"
]
=
""
@
property
@
property
def
dfs_node
(
self
):
def
dfs_node
(
self
):
...
...
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