tests 2000 and 2001 updated

use damask_tools to check whether DAMASK_ROOT is set
This commit is contained in:
Claudio Zambaldi 2011-11-09 12:09:54 +00:00
parent a66c502617
commit bfd6d4831f
1 changed files with 9 additions and 0 deletions

9
lib/damask_tools.py Normal file
View File

@ -0,0 +1,9 @@
class DAMASK_TOOLS():
import os,string
def check_env(self):
import os
if os.getenv('DAMASK_ROOT') is None:
print('No DAMASK_ROOT environment variable, did you run DAMASK/installation/setup_shellrc?')
sys.exit(1)
else:
return True