+ fix wrong output folder

This commit is contained in:
oleting
2020-12-27 19:21:16 +01:00
parent 7762ffdae4
commit 7f7c210c64
5 changed files with 20 additions and 15 deletions

View File

@@ -1,8 +1,9 @@
import draw.code_to_image as cti
class NSD_writer(object):
def __init__(self, filepath: str, x_sz: int, y_sz: int) -> None:
def __init__(self, filepath: str, filename: str, x_sz: int, y_sz: int) -> None:
self.filepath = filepath
self.filename = filename
self.x_sz = x_sz
self.y_sz = y_sz
@@ -10,4 +11,4 @@ class NSD_writer(object):
cti.NSD_init(self.x_sz, self.y_sz)
def __exit__(self, _, __, ___):
cti.NSD_save(self.filepath)
cti.NSD_save(self.filepath, self.filename)