Changeset 1624 for branches


Ignore:
Timestamp:
08/22/09 05:54:39 (15 years ago)
Author:
TakTsutsumi
Message:

New Development: No

JIRA Issue: No

Ready to Release: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Fixed revison() to work for

enduser environment


File:
1 edited

Legend:

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

    r1614 r1624  
    406406#__revision__ = ' unknown '
    407407casapath=os.environ["CASAPATH"].split()
    408 revinfo=casapath[0]+'/'+casapath[1]+'/python/2.5/asap/svninfo.txt'
     408#svninfo.txt path
     409if os.path.isdir(casapath[0]+'/'+casapath[1]+'/python/2.5/asap'):
     410    # for casa developer environment (linux or darwin)
     411    revinfo=casapath[0]+'/'+casapath[1]+'/python/2.5/asap/svninfo.txt'
     412else:
     413    # for end-user environments
     414    if casapath[1]=='darwin':
     415        revinfo=casapath[0]+'/Resources/python/asap/svninfo.txt'
     416    else:
     417        revinfo=casapath[0]+'/lib/python2.5/asap/svninfo.txt'
    409418if os.path.isfile(revinfo):
    410419    f = file(revinfo)
Note: See TracChangeset for help on using the changeset viewer.