Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def token(image,name):
dir = parser(name)+'.txt'
file = open(dir,'a')
log(dir+' Created')
image = arr(image)
for i in image:
for j in i:
file.write(sub(j))
file.write('\n')
log('Pixels Exported')
toolbar_width = 43
chlog = '1'
chcol = clr.red
print('-> LOG')
rfile = open('log.txt','r')
data = rfile.read().split('\n')
for i in data:
print(i)
slp(.5)
stdout.write("-> " % (" " * toolbar_width))
stdout.flush()
stdout.write("\b" * (toolbar_width+1))