Skip to content

Commit

Permalink
bugfix #1691 remove whitespace from output file paths (#1721)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemccabe authored Jul 27, 2022
1 parent b5a617a commit e2947df
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 e2947df

Please sign in to comment.