Changeset 5218
- Timestamp:
- Apr 18, 2008, 1:40:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/test_system_tools.py
r5072 r5218 8 8 from os.path import join, split, sep 9 9 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 14 from system_tools import * 11 15 12 16 class Test_system_tools(unittest.TestCase): … … 109 113 110 114 # 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') 112 123 113 124 filename = path + sep + 'crc_test_file.png'
Note: See TracChangeset
for help on using the changeset viewer.