diff --git a/TMGToolbox/src/input_output/export_subarea_tool.py b/TMGToolbox/src/input_output/export_subarea_tool.py index 4ccb69b..30afde1 100644 --- a/TMGToolbox/src/input_output/export_subarea_tool.py +++ b/TMGToolbox/src/input_output/export_subarea_tool.py @@ -343,9 +343,9 @@ def get_attribute_name(at): self.Scenario.publish_network(network) d = _MODELLER.desktop.data_explorer() remove = None - db_path = os.path.abspath(db.path) output_path = os.path.join(os.path.abspath(self.OutputFolder), "emmebank") for db in d.databases(): + db_path = os.path.abspath(db.path) if db_path == output_path: remove = db break