„output_module/whoosh.py“ ändern

main
ohjian 1 year ago
parent 8730698e84
commit ebe75a3801

@ -27,7 +27,7 @@ def whoosh(previous_module, current_module, module):
textContent = textFile.read() textContent = textFile.read()
if textContent != "": #use content of text file to define text variable if textContent != "": #use content of text file to define text variable
textIn = textContent 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) 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!"] defaultText = ["Modular Matter", "MODULAR MATTER", "Rewire your prints!", "REWIRE YOUR PRINTS!"]
textIn = choice(defaultText) textIn = choice(defaultText)

Loading…
Cancel
Save