From 7380d1a0a708f869c7926ae323123b3e49feadcd Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 23 Feb 2021 09:07:12 +0100 Subject: moved voerbak to own subfolder with makefile --- console/test.py | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 console/test.py (limited to 'console/test.py') diff --git a/console/test.py b/console/test.py deleted file mode 100644 index 8cc1db9..0000000 --- a/console/test.py +++ /dev/null @@ -1,24 +0,0 @@ -import subprocess - -w = 7 -h = 6 -column = 3 - -process = subprocess.Popen(["./voerbak"], - stdin=subprocess.PIPE, - stdout=subprocess.PIPE, - stderr=None) - -process.stdin.write(bytearray(f"{w} {h}\n", "utf-8")) -process.stdin.flush() - -process.stdin.write(bytearray(f"{column}\n", "utf-8")) -process.stdin.flush() - -# process.stdin.write(b"0\n") -# process.stdin.flush() -# for c in iter(lambda: process.stdout.read(1), b''): -# sys.stdout.write(c) - -print(process.stdout.readlines(5)) - -- cgit v1.2.3