Skip to content

Commit

Permalink
Refactor conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusfuchs committed Dec 1, 2020
1 parent 3af75a0 commit 575bf85
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions buildingspy/development/regressiontest.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,15 +477,14 @@ def _set_up_result_directories(self):
raise IOError(
f"Directory {self._arg_base_reference_result_directory} must exist. Check argument for 'base_reference_result_directory'.")
self._reference_results_base = self._arg_base_reference_result_directory
elif self._arg_base_reference_result_tool is not None:
dir_tool = self._get_name_tool_directory(self._arg_base_reference_result_tool)
else:
if self._arg_base_reference_result_tool is not None:
dir_tool = self._get_name_tool_directory(self._arg_base_reference_result_tool)
else:
dir_tool = self._get_name_tool_directory(self._modelica_tool)
self._reference_results_base = os.path.join(
self._libHome, 'Resources', 'ReferenceResults', dir_tool)
else: # Use the default setting.
dir_tool = self._get_name_tool_directory(self._modelica_tool)
self._reference_results_base = os.path.join(
self._libHome, 'Resources', 'ReferenceResults', dir_tool)


dir_tool = self._get_name_tool_directory(self._modelica_tool)
self._reference_results_target = os.path.join(
self._libHome, 'Resources', 'ReferenceResults', dir_tool)
Expand Down

0 comments on commit 575bf85

Please sign in to comment.