Changeset 1371 for trunk/python


Ignore:
Timestamp:
07/02/07 15:23:04 (17 years ago)
Author:
mar637
Message:

added a check if /data exists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/__init__.py

    r1365 r1371  
    2222    if os.path.exists(os.environ["ASAPDATA"]):
    2323        asapdata = os.environ["ASAPDATA"]
    24 if not os.environ.has_key("AIPSPATH"):
     24# use AIPSPATH if defined and "data" dir present
     25if not os.environ.has_key("AIPSPATH") or \
     26        not os.path.exists(os.environ["AIPSPATH"].split()[0]+"/data"):
    2527    os.environ["AIPSPATH"] = "%s %s somwhere" % ( asapdata, plf)
    2628# set up user space
     
    359361
    360362__date__ = '$Date$'.split()[1]
    361 __version__  = '2.2.0'
     363__version__  = 'trunk'
    362364
    363365def is_ipython():
Note: See TracChangeset for help on using the changeset viewer.