cvnie.py
Go to the documentation of this file.
1 
2 from ROOT import *
3 import sys, os
4 
5 priv = os.getenv("SRT_PRIVATE_CONTEXT")
6 pub = os.getenv("SRT_PUBLIC_CONTEXT")
7 subdir = os.getenv("SRT_SUBDIR")
8 
9 lib = "CVNFunc"
10 
11 privPath = priv + "/lib/"+subdir+"/lib" + lib + "_dict.so"
12 pubPath = pub + "/lib/"+subdir+"/lib" + lib + "_dict.so"
13 
14 if priv != "." and os.path.isfile(privPath):
15  dictPath = privPath
16 else:
17  dictPath = pubPath
18 
19 gSystem.Load("libCintex.so")
20 Cintex.Enable()
21 gSystem.Load(dictPath)
22