+ fix wrong output folder
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user