Skip to content

Commit

Permalink
Fix loader in case path contains "-" character
Browse files Browse the repository at this point in the history
Refs #18843
  • Loading branch information
martyngigg committed Feb 21, 2017
1 parent 6f4cee4 commit 41f8add
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Framework/PythonInterface/plugins/algorithms/LoadVesuvio.py
Expand Up @@ -7,6 +7,7 @@

import copy
import numpy as np
import os
import re
import six

Expand Down Expand Up @@ -158,7 +159,8 @@ def validateInputs(self):

# Validate run number ranges
run_str = self.getProperty(RUN_PROP).value
if "-" in run_str:
# String could be a full file path
if "-" in os.path.basename(run_str):
lower, upper = run_str.split("-")
issues = self._validate_range_formatting(lower, upper, RUN_PROP, issues)

Expand Down

0 comments on commit 41f8add

Please sign in to comment.