Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix #1691 remove whitespace from output file paths #1721

Merged
merged 2 commits into from
Jul 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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