Changeset 1456
- Timestamp:
- 12/12/08 16:47:56 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/alma/python/__init__.py
r1445 r1456 5 5 import os,sys,shutil, platform 6 6 7 # Set up AIPSPATH and first time use of asap i.e. ~/.asap/*7 # Set up CASAPATH and first time use of asap i.e. ~/.asap/* 8 8 plf = None 9 9 if sys.platform == "linux2": … … 22 22 if os.path.exists(os.environ["ASAPDATA"]): 23 23 asapdata = os.environ["ASAPDATA"] 24 # use AIPSPATH if defined and "data" dir present25 if not os.environ.has_key(" AIPSPATH") or \26 not os.path.exists(os.environ[" AIPSPATH"].split()[0]+"/data"):27 os.environ[" AIPSPATH"] = "%s %s somwhere" % ( asapdata, plf)24 # use CASAPATH if defined and "data" dir present 25 if not os.environ.has_key("CASAPATH") or \ 26 not os.path.exists(os.environ["CASAPATH"].split()[0]+"/data"): 27 os.environ["CASAPATH"] = "%s %s somwhere" % ( asapdata, plf) 28 28 # set up user space 29 29 userdir = os.environ["HOME"]+"/.asap" … … 364 364 # nrao casapy specific, get revision number 365 365 __revision__ = ' unknown ' 366 casapath=os.environ[" AIPSPATH"].split()366 casapath=os.environ["CASAPATH"].split() 367 367 revinfo=casapath[0]+'/'+casapath[1]+'/python/2.5/asap/svninfo.txt' 368 368 if os.path.isfile(revinfo):
Note:
See TracChangeset
for help on using the changeset viewer.