Changeset 1316 for trunk/python


Ignore:
Timestamp:
02/07/07 15:11:26 (18 years ago)
Author:
mar637
Message:

Fix for Ticket #98; taking system AIPSPATH if defined

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/__init__.py

    r1311 r1316  
    2222    if os.path.exists(os.environ["ASAPDATA"]):
    2323        asapdata = os.environ["ASAPDATA"]
    24 os.environ["AIPSPATH"] = "%s %s somwhere" % ( asapdata, plf)
     24if not os.environ.has_key("AIPSPATH"):
     25    os.environ["AIPSPATH"] = "%s %s somwhere" % ( asapdata, plf)
    2526# set up user space
    2627userdir = os.environ["HOME"]+"/.asap"
Note: See TracChangeset for help on using the changeset viewer.