Skip to content

Commit

Permalink
related to #2157, substitute tags into the input data dir if using a …
Browse files Browse the repository at this point in the history
…time window in case tags are set in the dir to search
  • Loading branch information
georgemccabe committed May 24, 2023
1 parent a33e446 commit a1dbd51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions metplus/wrappers/command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,9 @@ def find_file_in_window(self, level, data_type, time_info, mandatory=True,
self.log_error('Must set INPUT_DIR if looking for files within a time window')
return None

# substitute any filename template tags that may be in _INPUT_DIR
data_dir = do_string_sub(data_dir, **time_info)

# step through all files under input directory in sorted order
for dirpath, _, all_files in os.walk(data_dir):
for filename in sorted(all_files):
Expand Down

0 comments on commit a1dbd51

Please sign in to comment.