Implemented interface between NSD and interpreter
This commit is contained in:
@@ -226,7 +226,7 @@ class Gui:
|
||||
output_name = secrets.token_hex(16)
|
||||
|
||||
nassi(input_path=file_path, output_path=output_path, outputname=output_name, gui=self,
|
||||
font_filepath=font_filepath, behaviour=exists_choice, types=types, remove_tages=modifier, comments=comments)
|
||||
font_filepath=font_filepath, behaviour=exists_choice, types=types, remove_tags=modifier, comments=comments)
|
||||
|
||||
fnames = output(values['-OUTPUT FOLDER-'])
|
||||
sg.popup_annoying('Successfully created!', title='Created',
|
||||
|
||||
@@ -20,8 +20,10 @@ def nassi(input_path: str, output_path: str, outputname: str, types, remove_tags
|
||||
logging.error('Error: Creating directory. ' + output_directory)
|
||||
except:
|
||||
raise
|
||||
|
||||
custom_tags = {"comments" : comments, "ignore" : remove_tags, "types" : types}
|
||||
|
||||
NSD.load_from_file(input_path, types, remove_tags, comments)
|
||||
NSD.load_from_file(input_path, custom_tags)
|
||||
NSD.convert_to_image(output_directory, on_conflict=behaviour, x_size=750)
|
||||
|
||||
return output_directory
|
||||
|
||||
Reference in New Issue
Block a user