From 5eaf1e29c779d18f1fe00f303399ecf6d3fdb80c Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Fri, 28 Aug 2015 11:41:51 +0200 Subject: Add support for creating Python interpreters --- python/runner/interpreter.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 python/runner/interpreter.py (limited to 'python/runner') diff --git a/python/runner/interpreter.py b/python/runner/interpreter.py new file mode 100755 index 0000000..5fa320a --- /dev/null +++ b/python/runner/interpreter.py @@ -0,0 +1,8 @@ +#!/usr/bin/python3 + +# Apparently there is no (working) way to get a non-blocking stdout if we call +# the Python interpreter directly with subprocess.Popen. For some reason, this +# works. + +import code +code.interact(banner='') -- cgit v1.2.1