Skip to content

Commit

Permalink
per #1691, replace whitespace with underscore in output paths
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemccabe committed Jul 7, 2022
1 parent 501dad2 commit 2759ab6
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 @@ -968,6 +968,9 @@ def find_and_check_output_file(self, time_info=None,
# replace wildcard character * with all
output_path = output_path.replace('*', 'all')

# replace any whitespace with an underscore
output_path = '_'.join(output_path.split())

skip_if_output_exists = self.c_dict.get('SKIP_IF_OUTPUT_EXISTS', False)

# get directory that the output file will exist
Expand Down

0 comments on commit 2759ab6

Please sign in to comment.