diff options
-rwxr-xr-x | wqflask/wqflask/marker_regression/marker_regression.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/wqflask/marker_regression/marker_regression.py b/wqflask/wqflask/marker_regression/marker_regression.py index 8d3eba48..67e1df0d 100755 --- a/wqflask/wqflask/marker_regression/marker_regression.py +++ b/wqflask/wqflask/marker_regression/marker_regression.py @@ -42,11 +42,11 @@ from utility import temp_data from utility.benchmark import Bench import os -if os.environ['PYLMM_PATH'] is None: - PYLMM_PATH=app.config['PYLMM_PATH'] +if os.environ.get('PYLMM_PATH') is None: + PYLMM_PATH=app.config.get('PYLMM_PATH') if PYLMM_PATH is None: PYLMM_PATH=os.environ['HOME']+'/gene/wqflask/wqflask/my_pylmm/pyLMM' -if !os.path.isfile(PYLMM_PATH+'lmm.py'): +if not os.path.isfile(PYLMM_PATH+'/lmm.py'): raise 'PYLMM_PATH unknown or faulty' PYLMM_COMMAND= 'python '+PYLMM_PATH+'/lmm.py' |