Revert "Store the real/final output filename so that we can notify it correctly to the user"

This reverts commit d7aae3a982.
This commit is contained in:
Gustavo Moreira
2024-06-10 17:25:05 +10:00
parent a72062f288
commit ab84070df3
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -790,8 +790,8 @@ class CommandLine:
return None
self._file.close()
self._output_filename = self._get_final_filename()
os.rename(self._name, self._output_filename)
output_filename = self._get_final_filename()
os.rename(self._name, output_filename)
if direct:
return CLIDirectFileHandler
@@ -115,7 +115,6 @@ class LayerWriter(plugins.PluginInterface):
progress_callback=self._progress_callback,
)
file_handle.close()
output_name = file_handle._output_filename
except IOError as excp:
yield 0, (f"Layer cannot be written to {output_name}: {excp}",)