Changeset 1127 for trunk/scons


Ignore:
Timestamp:
08/10/06 14:35:46 (18 years ago)
Author:
mar637
Message:

more fixes to casa detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scons/casa.py

    r1119 r1127  
    11import os
     2import sys
     3import platform
    24from SCons.Script import *
    35
     
    3032        casaarch = darwin
    3133    elif sys.platform == 'linux2' and platform.architecture()[0] == '64bit':
    32         casarch = 'linux_64b'
     34        casaarch = 'linux_64b'
    3335    paths = "/nfs/aips++/weekly /aips++ /opt/aips++ ../casa_asap".split()
    34     if path is not None:
     36    if path is not None and len(path):
    3537        paths = [path]
    3638    for p in paths:
    3739        if os.path.isfile(os.path.join(p,casaarch,"lib/libcasa.a")):
    3840            conf.env.Append(CASAARCH = casaarch)
    39             conf.env.Append(CASAROOT = p)
     41            conf.env.Append(CASAROOT = os.path.abspath(p))
    4042            addCasaLibs(conf.env)
    4143            conf.Result('yes')
    4244            return True
    43     conf.Result('n')
     45    conf.Result('no')
    4446    return False
Note: See TracChangeset for help on using the changeset viewer.