Changeset 5219


Ignore:
Timestamp:
Apr 18, 2008, 3:30:07 PM (16 years ago)
Author:
duncan
Message:

Generalising to work in EQRM

File:
1 edited

Legend:

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

    r5218 r5219  
    113113
    114114        # Get path where this test is run
    115         try:
    116             path = get_pathname_from_package('anuga.utilities')
    117         except ImportError:
    118             # I'm trying to keep this file general,
    119             # so it works for EQRM and ANUGA
    120             # EQRM also uses this file,
    121             # but has a different directory structure
    122             path = get_pathname_from_package('eqrm_code.ANUGA_utilities')
     115        # I'm trying to keep this file general, so it works for EQRM and ANUGA
     116        path, tail = split(__file__)
     117        if path == '':
     118            path = '.' + sep
    123119       
    124120        filename = path + sep +  'crc_test_file.png'
Note: See TracChangeset for help on using the changeset viewer.