+ 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

@@ -4,17 +4,16 @@ import os
from interpreter.NassiShneidermann import NassiShneidermanDiagram
from draw.Iinstruction import *
def nassi(filepath:str, output_path: str, gui, font_filepath=None):
def nassi(filepath:str, output_path: str, outputname, gui, font_filepath=None):
NSD = NassiShneidermanDiagram(gui.debug_mode)
#if font_filepath is None:
# pass
#else:
#if font_filepath is not None or font_filepath != "":
if font_filepath != None:
print(font_filepath)
NSD.set_font(font_filepath)
NSD.set_font(str(font_filepath))
NSD.load_from_file(filepath)
NSD.convert_to_image(output_path, 500)
NSD.convert_to_image(output_path, outputname, 500)
def output(values):
output_path = values['-OUTPUT FOLDER-']