diff --git a/lib/damask_tools.py b/lib/damask_tools.py new file mode 100644 index 000000000..11b0faa2f --- /dev/null +++ b/lib/damask_tools.py @@ -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 \ No newline at end of file