Browse Source

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.
pull/152/head
Adam Johnson 5 years ago
parent
commit
cc55c422d0
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 2
      korman/exporter/outfile.py

2
korman/exporter/outfile.py

@ -89,7 +89,7 @@ class _OutputFile:
self.mod_time = None self.mod_time = None
self.file_path = 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) path = Path(self.id_data.filepath)
try: try:
if path.exists(): if path.exists():

Loading…
Cancel
Save