From 268b1bd16c6c7a46a1cf21710a42fce434be2aba Mon Sep 17 00:00:00 2001 From: Michael Blanton Date: Thu, 28 Sep 2023 16:15:45 -0600 Subject: [PATCH] add getenv --- bin/validate_designs_batches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/validate_designs_batches.py b/bin/validate_designs_batches.py index 372f343..baf2941 100644 --- a/bin/validate_designs_batches.py +++ b/bin/validate_designs_batches.py @@ -411,7 +411,7 @@ def valid_design_func(file, exp, obsTime, field_desmodes, cache_bs = args.cache_bs ver_catch = args.ver_catch - MUGATU_DATA = os.popen('echo $MUGATU_DATA').read()[:-1] + MUGATU_DATA = os.getenv('MUGATU_DATA') if vtype == 'dir': files = [file for file in glob.glob(directory + '*.fits')]