fixed syntax warning in

This commit is contained in:
weckyy702
2020-12-27 17:39:24 +01:00
parent c119863d25
commit ed0a480556

View File

@@ -6,7 +6,7 @@ from draw.Iinstruction import *
def nassi(filepath:str, output_path: str, gui, font_filepath: str=None):
NSD = NassiShneidermanDiagram(gui.debug_mode)
if font_filepath is not None and font_filepath is not "":
if font_filepath is not None and font_filepath != "":
NSD.set_font(font_filepath)
NSD.load_from_file(filepath)
NSD.convert_to_image(output_path, 500)