Commit e0ce912f authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

added dm.set_env()

parent 69f5b894
......@@ -187,14 +187,16 @@ class CsstMsDataManager:
# self.l1api = Level1DataApi()
# aXe
self.dir_bin = "/nfsdata/users/csstpipeline/L1Pipeline/bin"
self.set_env()
def set_env(self):
""" set environment variables """
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:
os.environ["LD_LIBRARY_PATH"] = ""
os.environ["AXE_BINDIR"] = ""
@property
def dfs_node(self):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment