from casa_stack_manip import stack_find, find_casa
def static_var(varname, value):
setattr(func, varname, value)
@static_var("path", None)
__casapath__ = os.environ['CASAPATH'].split(' ')[0]
__casaarch__ = os.environ['CASAPATH'].split(' ')[1]
if os.path.exists(__casapath__ + "/" + __casaarch__ + "/xml"):
xmlpath.path = __casapath__ + "/" + __casaarch__ + "/xml"
elif os.path.exists(__casapath__ + "/xml"):
xmlpath.path = __casapath__ + "/xml"
raise RuntimeError, "Unable to find the XML constraints directory in your CASAPATH"
if casa.has_key('state') and casa['state'].has_key('init_version') and casa['state']['init_version'] > 0:
casac = stack_find("casac")
casalog = stack_find("casalog")
gentools = stack_find("gentools")
qatool = stack_find("qatool")
utilstool = stack_find("utilstool")
tbtool = stack_find("tbtool")
mstool = stack_find("mstool")
aftool = stack_find("aftool")
cbtool = stack_find("cbtool")
cltool = stack_find("cltool")
write_history = stack_find("write_history")
metool = stack_find("metool")
mttool = stack_find("mttool")
imtool = stack_find("imtool")
smtool = stack_find("smtool")
attool = stack_find("attool")
msmdtool = stack_find("msmdtool")
coordsystool = stack_find("coordsystool")
cptool = stack_find("cptool")
cstool = stack_find("cstool")
dctool = stack_find("dctool")
fitool = stack_find("fitool")
fntool = stack_find("fntool")
iatool = stack_find("iatool")
imdtool = stack_find("imdtool")
lmtool = stack_find("lmtool")
mptool = stack_find("mptool")
pmtool = stack_find("pmtool")
potool = stack_find("potool")
rgtool = stack_find("rgtool")
sdmstool = stack_find("sdmstool")
sdms = stack_find("sdms")
sltool = stack_find("sltool")
tptool = stack_find("tptool")
viewertool = stack_find("viewertool")
vptool = stack_find("vptool")
sbstool = stack_find("sbstool")
def __taskinit_setlogfile( logger ) :