„output_module/whoosh.py“ ändern

main
ohjian 11 months ago
parent 8730698e84
commit ebe75a3801

@ -27,7 +27,7 @@ def whoosh(previous_module, current_module, module):
textContent = textFile.read()
if textContent != "": #use content of text file to define text variable
textIn = textContent
text = text.replace("\n", "")
textIn = textIn.replace("\n", "")
else: #if text file is emptpy: randomly pick a default text (in case keyboard module is not used)
defaultText = ["Modular Matter", "MODULAR MATTER", "Rewire your prints!", "REWIRE YOUR PRINTS!"]
textIn = choice(defaultText)

Loading…
Cancel
Save