Changeset 5218


Ignore:
Timestamp:
Apr 18, 2008, 1:40:15 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

    r5072 r5218  
    88from os.path import join, split, sep
    99
    10 from anuga.utilities.system_tools import *
     10
     11# Please, don't add anuga.utilities to these imports.
     12# I'm trying to keep this file general, so it works for EQRM and ANUGA
     13# EQRM also uses this file, but has a different directory structure
     14from system_tools import *
    1115
    1216class Test_system_tools(unittest.TestCase):
     
    109113
    110114        # Get path where this test is run
    111         path = get_pathname_from_package('anuga.utilities')
     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')
    112123       
    113124        filename = path + sep +  'crc_test_file.png'
Note: See TracChangeset for help on using the changeset viewer.