Skip to content

Commit

Permalink
switch to os.getenv
Browse files Browse the repository at this point in the history
  • Loading branch information
imedan committed Oct 3, 2023
1 parent 8d88cc4 commit 96ecbef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/validate_designs_batches.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def valid_design_func(file, exp, obsTime, field_desmodes,
files = []

cache_files = []
cache_dir = os.popen('echo $ROBOSTRATEGY_DATA').read()[:-1] + '/allocations/eta-0-bs-cache/targets/'
cache_dir = os.getenv('ROBOSTRATEGY_DATA') + '/allocations/eta-0-bs-cache/targets/'

allocate_file = sdss_path.full('rsAllocationFinal', plan=plan,
observatory=observatory)
Expand Down Expand Up @@ -455,7 +455,7 @@ def valid_design_func(file, exp, obsTime, field_desmodes,
files = []

cache_files = []
cache_dir = os.popen('echo $ROBOSTRATEGY_DATA').read()[:-1] + '/allocations/eta-0-bs-cache/targets/'
cache_dir = os.getenv('ROBOSTRATEGY_DATA') + '/allocations/eta-0-bs-cache/targets/'

allocate_file = sdss_path.full('rsAllocationFinal', plan=plan,
observatory=observatory)
Expand Down

0 comments on commit 96ecbef

Please sign in to comment.