From cc55c422d08c215263849bec6b2e1a601efa499d Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Wed, 2 Oct 2019 17:05:25 -0400 Subject: [PATCH] Fix exporting internal SDL files. Previously, we would use the current working directory as the SDL file path. This would crash when we attempted to see if that file is encrypted. --- korman/exporter/outfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korman/exporter/outfile.py b/korman/exporter/outfile.py index 70aa892..180a0f8 100644 --- a/korman/exporter/outfile.py +++ b/korman/exporter/outfile.py @@ -89,7 +89,7 @@ class _OutputFile: self.mod_time = None self.file_path = None - if self.id_data is not None: + if self.id_data is not None and not self.id_data.is_in_memory: path = Path(self.id_data.filepath) try: if path.exists():