+ 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

@@ -29,10 +29,10 @@ class NassiShneidermanDiagram:
h += inst.getblksize()
return int(h)
def convert_to_image(self, filename: str, x_size: int=200):
def convert_to_image(self, filepath, filename: str, x_size: int=200):
image_y_sz = self._get_image_height()
logging.info(f"Saving NSD to {filename}.png...")
with NSD_writer(filename, x_size, image_y_sz):
with NSD_writer(filepath, filename, x_size, image_y_sz):
x, y = 0, 0
for instruction in self.instructions: