From d21e6ae899b9ac8c53178946675ed7ca80af084a Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Wed, 11 Jan 2017 17:04:08 -0500 Subject: For do_py(), moved the definition of the run() command earlier. This is so that it will allow the user to run a Python script directly from the Cmd prompt even before an interactive Python shell has ever been invoked via: py run('script.py') This fixes a bug where it wouldn't allow that to occur until the user entered just "py" at the Cmd prompt. Also added a trivial Python script script.py to the example directory for the purposes of testing script execution. --- example/script.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 example/script.py (limited to 'example/script.py') diff --git a/example/script.py b/example/script.py new file mode 100644 index 00000000..7d0c998a --- /dev/null +++ b/example/script.py @@ -0,0 +1,3 @@ +#!/usr/bin/env python +print("This is a python script running ...") + -- cgit v1.2.1