Changeset 1456 for branches/alma


Ignore:
Timestamp:
12/12/08 16:47:56 (15 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: No

Ready to Release: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Description:

Updated the environmental variable 'AIPSPATH' to 'CASAPATH'.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/python/__init__.py

    r1445 r1456  
    55import os,sys,shutil, platform
    66
    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/*
    88plf = None
    99if sys.platform == "linux2":
     
    2222    if os.path.exists(os.environ["ASAPDATA"]):
    2323        asapdata = os.environ["ASAPDATA"]
    24 # use AIPSPATH if defined and "data" dir present
    25 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
     25if 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)
    2828# set up user space
    2929userdir = os.environ["HOME"]+"/.asap"
     
    364364# nrao casapy specific, get revision number
    365365__revision__ = ' unknown '
    366 casapath=os.environ["AIPSPATH"].split()
     366casapath=os.environ["CASAPATH"].split()
    367367revinfo=casapath[0]+'/'+casapath[1]+'/python/2.5/asap/svninfo.txt'
    368368if os.path.isfile(revinfo):
Note: See TracChangeset for help on using the changeset viewer.