delete unused code
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from gui.utils import nassi, output, file_there
|
||||
from gui.utils import nassi, output
|
||||
from interpreter.interpret_source import JavaSyntaxError, ScopeNotFoundException, InterpreterException
|
||||
|
||||
from enum import IntEnum
|
||||
@@ -189,7 +189,6 @@ class Gui:
|
||||
if output_name is None:
|
||||
sg.popup_auto_close('You didn\'t set a name for the image, it will be named randomly.')
|
||||
output_name = secrets.token_hex(16)
|
||||
#if file_there((output_path + '/')) is True:
|
||||
|
||||
nassi(input_path=file_path, output_path=output_path, outputname=output_name, gui=self,
|
||||
font_filepath=font_filepath, behaviour=exists_choice)
|
||||
|
||||
@@ -28,7 +28,3 @@ def output(values):
|
||||
and f.lower().endswith(('.png', '.gif'))
|
||||
]
|
||||
return fnames
|
||||
|
||||
|
||||
def file_there(file):
|
||||
return os.path.exists(str(file))
|
||||
|
||||
@@ -48,7 +48,7 @@ class NassiShneidermanDiagram:
|
||||
x, y = instruction.to_image(x, y, 1000)
|
||||
|
||||
def check_conflicts(self, filepath:str, behavoiur: Overwrite_behaviour):
|
||||
if os.path.exists(filepath+".png"):
|
||||
if os.path.exists(filepath + ".png"):
|
||||
if behavoiur == OB.SKIP:
|
||||
return None
|
||||
elif behavoiur == OB.OVERWWRITE:
|
||||
|
||||
Reference in New Issue
Block a user