Commit 89111c53 authored by Bastien Terrier's avatar Bastien Terrier
Browse files

fix initFile arg + split function

parent 0d78a407
from alphabet import * #import alphabet
from resources import * #import resources
def initFile(sentence):
def initFile(s_sentences):
f_dataStream.write("#!/bin/bash")
f_dataStream.write("\n\n#Powered by Bastien T\n")
f_dataStream.write("\n#Sentences : {}\n".format(sentence))
f_dataStream.write("\n#Sentences : {}\n".format(s_sentences))
f_dataStream.write("#Xeyes size : {}\n\n".format(i_xeyes_size))
##############################
......
......@@ -16,9 +16,9 @@ s_input = s_input.upper()
s_input = s_input.replace('""', "")
#if several sentences : delimiter "\"
l_sentences = s_input.slipt("\")
l_sentences = s_input.split("\\")
initFile(f_dataStream, s_input)
initFile(s_input)
for s_sentence in l_sentences:
displaySentence(s_sentence)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment