fix for @oleting

This commit is contained in:
weckyy702
2021-02-09 15:07:12 +01:00
parent cbad444743
commit 9e505e512f
3 changed files with 42 additions and 39 deletions

View File

@@ -1,5 +1,3 @@
from os import stat
from interpreter.interpret_source import Function_scope
from typing import Dict, List, Optional
from PySimpleGUI import one_line_progress_meter
import logging
@@ -8,6 +6,7 @@ import os.path
import secrets
from interpreter.interpret_source import JavaInterpreter
from interpreter.function_scope import Function_scope
from draw.code_to_image_wrapper import NSD_writer
import draw.code_to_image as cti
@@ -50,7 +49,7 @@ class NassiShneidermanDiagram:
return filepath
else:
while os.path.exists(filepath+".png"):
filepath = filepath + str(secrets.token_hex(1))
filepath += str(secrets.token_hex(1))
return filepath
return filepath