Browse Source

Fix #185.

pull/180/head
Adam Johnson 5 years ago
parent
commit
6a9bf675a4
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 6
      korman/exporter/outfile.py

6
korman/exporter/outfile.py

@ -239,9 +239,11 @@ class OutputFiles:
stream = hsRAMStream(self._version)
else:
if dat_only:
file_path = str(self._export_file.parent / filename)
file_path = self._export_file.parent.joinpath(filename)
else:
file_path = str(self._export_path / dirname / filename)
file_path = self._export_path.joinpath(dirname, filename)
file_path.parent.mkdir(parents=True, exist_ok=True)
file_path = str(file_path) # FIXME when we bump to Python 3.6+
stream = hsFileStream(self._version)
stream.open(file_path, fmCreate)
backing_stream = stream

Loading…
Cancel
Save