Skip to content

Commit

Permalink
resolve comout
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumevernieres committed Feb 13, 2025
1 parent b56875b commit 4ca1eb6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions utils/soca/fig_gallery/vrfy_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
import subprocess

comout = os.getenv('COM_OCEAN_ANALYSIS')
# resolve the comout path since it may contain wild cards
matching_paths = glob.glob(comout)
if matching_paths:
comout = matching_paths[0] # Assuming you want the first match
print(comout)
else:
print("No matching paths found")
exit(1)

com_ice_history = os.getenv('COM_ICE_HISTORY_PREV')
com_ocean_history = os.getenv('COM_OCEAN_HISTORY_PREV')
cyc = os.getenv('cyc')
Expand Down

0 comments on commit 4ca1eb6

Please sign in to comment.