summaryrefslogtreecommitdiff
path: root/python/interp.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/interp.py')
-rw-r--r--python/interp.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/interp.py b/python/interp.py
new file mode 100644
index 00000000..afc62ba4
--- /dev/null
+++ b/python/interp.py
@@ -0,0 +1,7 @@
+from code import InteractiveConsole
+
+def cmd_python():
+ interpreter = InteractiveConsole()
+ interpreter.push("from ledger import *")
+ interpreter.interact("Welcome to Ledger")
+ return True