From 62c07bd59bf876845e80fc8ff947ec489e5ef2e2 Mon Sep 17 00:00:00 2001 From: Alice Date: Wed, 21 Mar 2018 12:04:25 +0100 Subject: [PATCH] Fixed makefile recipe --- Makefile | 4 ++-- src/overunder.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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