Skip to content
Snippets Groups Projects
Commit a02e1bc7 authored by Alex Buts's avatar Alex Buts
Browse files

Re #11445 Should fix unit test

parent 362381c2
No related branches found
No related tags found
No related merge requests found
...@@ -900,6 +900,8 @@ class RunDescriptor(PropDescriptor): ...@@ -900,6 +900,8 @@ class RunDescriptor(PropDescriptor):
' Found file {1} instead'.format(old_ext,file) ' Found file {1} instead'.format(old_ext,file)
RunDescriptor._logger(message,'notice') RunDescriptor._logger(message,'notice')
self._run_file_path = os.path.dirname(fname) self._run_file_path = os.path.dirname(fname)
self._fext = fex
#------------------------------------------------ #------------------------------------------------
try: try:
file = FileFinder.findRuns(file_hint)[0] file = FileFinder.findRuns(file_hint)[0]
...@@ -910,7 +912,6 @@ class RunDescriptor(PropDescriptor): ...@@ -910,7 +912,6 @@ class RunDescriptor(PropDescriptor):
file_hint,oext = os.path.splitext(file_hint) file_hint,oext = os.path.splitext(file_hint)
file = FileFinder.findRuns(file_hint)[0] file = FileFinder.findRuns(file_hint)[0]
_check_ext(file) _check_ext(file)
self._fext = fex
return (True,file) return (True,file)
except RuntimeError: except RuntimeError:
message = '*** Cannot find file matching hint {0} on Mantid search paths '.\ message = '*** Cannot find file matching hint {0} on Mantid search paths '.\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment