adding absolute paths in Nadine's python scripts

master
Castro0o 8 years ago
parent c31a2b2ae8
commit c845f655df

@ -18,7 +18,7 @@ dic={
}
f=open("transcripts-drone-attack.txt","r")
f=open("/media/floppy/transcripts-drone-attack.txt","r")
txt=f.readlines()
p= re.compile(r"^(\d\d\:\d\d) \((.*?)\)\: (.*)") # regex for capturing groups: time, character, sentence
for line in txt:
@ -32,7 +32,7 @@ for line in txt:
sentence_parts=re.split(r"(\*\w+\*)", sentence)
for part in sentence_parts:
if part == '*expletive*':
subprocess.call(["aplay", 'swear.wav'], stdout=devnull, stderr=devnull)
subprocess.call(["aplay", '/media/floppy/swear.wav'], stdout=devnull, stderr=devnull)
else:
subprocess.call(["espeak", part, "-v", voice], stdout=devnull, stderr=devnull) # character speaks: his
sleep(float(random.randint(1,10))/100)

@ -8,7 +8,7 @@ dic={
"narrator": "en-us",
}
f=open("detail_of_attack.txt","r")
f=open("/media/floppy/detail_of_attack.txt","r")
txt=f.readlines()
for line in txt:
print line

Loading…
Cancel
Save