diff --git a/Makefile b/Makefile index 56e9f07..22c643b 100644 --- a/Makefile +++ b/Makefile @@ -92,8 +92,8 @@ output/carlandre.txt: ocr/output.txt ## Alice: Creates visual poetry out of a te cat $< | python3 src/carlandre.py > $(@) # cat $(@) > /dev/usb/lp0 -output/overunder.txt: ocr/output.txt ## Alice: An interpreted language that translate simple weaving instructions and creates a weaving pattern on text. Dependencies: - cat $< | python3 src/overunder.py > $(@) +output/overunder.txt: ocr/output.txt ## Alice: An interpreted language that translate simple weaving instructions and creates a weaving pattern on text. + python3 src/overunder.py visualization: $(images) $(tmpfile) ##Creates data visualization from images/*.jpg. Dependencies: mplayer diff --git a/src/overunder.py b/src/overunder.py index ba2652e..eb06093 100644 --- a/src/overunder.py +++ b/src/overunder.py @@ -43,7 +43,7 @@ def eval(cmds): last_index = 0 elif cmd[0] == 'load': - contents = open('output.txt').read() + contents = open('ocr/output.txt').read() text = textwrap.wrap(contents, 40, break_long_words=True) print('\n'.join(text)) line_number = 0