Changeset 1183


Ignore:
Timestamp:
08/24/06 14:58:57 (18 years ago)
Author:
mar637
Message:

only import asap when ASAPDATA not set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/asap_update_data

    r1180 r1183  
    44import tarfile
    55
    6 import asap
    76import shutil
    87
     
    2120md5new = md5file.readlines()[0].split()[0]
    2221
    23 # get asap module path
    24 asapbase = asap.__path__[0]
    2522# use ASAPDATA if set - allows non-root update
    2623if os.environ.has_key("ASAPDATA"):
    2724    asapbase = os.environ["ASAPDATA"]
    28    
     25else:
     26    import asap
     27    # get asap module path
     28    asapbase = asap.__path__[0]
    2929try:
    3030    fl = os.path.join(asapbase, name+".md5sum")
Note: See TracChangeset for help on using the changeset viewer.