Use try: except: to import test utility code
This commit is contained in:
@@ -3,7 +3,11 @@ import opm
|
||||
from opm.io.parser import Parser
|
||||
from opm.io.ecl_state import EclipseState
|
||||
from opm.io.schedule import Schedule
|
||||
from utils import test_path
|
||||
|
||||
try:
|
||||
from tests.utils import test_path
|
||||
except ImportError:
|
||||
from utils import test_path
|
||||
|
||||
def injector(well):
|
||||
return well.isinjector()
|
||||
|
||||
Reference in New Issue
Block a user