summaryrefslogtreecommitdiff
path: root/python/runner
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-08-28 11:41:51 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-08-28 11:43:47 +0200
commit5eaf1e29c779d18f1fe00f303399ecf6d3fdb80c (patch)
tree6522c8db3211bf264825122434300a27048bf4e9 /python/runner
parent9db4a30bcb3c2afada26e1a8befcd761a8819420 (diff)
Add support for creating Python interpreters
Diffstat (limited to 'python/runner')
-rwxr-xr-xpython/runner/interpreter.py8
1 files changed, 8 insertions, 0 deletions
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='')