Changeset 5050


Ignore:
Timestamp:
Feb 19, 2008, 1:24:29 PM (16 years ago)
Author:
duncan
Message:

generalising test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/test_polygon.py

    r4528 r5050  
    6060        from os import sep, getenv
    6161
     62       
    6263        try:
    6364            # When unit test is run from current dir
     
    6566        except:
    6667            # When unit test is run from ANUGA root dir
    67             from os.path import join
    68 
    69             path = join('utilities', 'mainland_only.csv')
     68            from os.path import join, split
     69            dir, tail = split( __file__)
     70            path = join(dir, 'mainland_only.csv')
    7071            p1 = read_polygon(path)
    7172       
Note: See TracChangeset for help on using the changeset viewer.