From e2947df7c9eb2ad029505cd49411530e533067fd Mon Sep 17 00:00:00 2001 From: George McCabe <23407799+georgemccabe@users.noreply.github.com> Date: Wed, 27 Jul 2022 15:50:36 -0600 Subject: [PATCH] bugfix #1691 remove whitespace from output file paths (#1721) --- metplus/wrappers/command_builder.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/metplus/wrappers/command_builder.py b/metplus/wrappers/command_builder.py index e41b51cf8..4148725b1 100755 --- a/metplus/wrappers/command_builder.py +++ b/metplus/wrappers/command_builder.py @@ -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