diff options
Diffstat (limited to 'examples/python_scripting.py')
-rwxr-xr-x | examples/python_scripting.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/python_scripting.py b/examples/python_scripting.py index baa15f3f..6c64dd9f 100755 --- a/examples/python_scripting.py +++ b/examples/python_scripting.py @@ -9,8 +9,8 @@ learn to create scripts. However, there comes a time when technical end users want more capability and power. In particular it is common that users will want to create a script with conditional control flow - where the next command run will depend on the results -from the previous command. This is where the ability to run Python scripts inside a cmd2 application via the py command -and the "py run('myscript.py')" syntax comes into play. +from the previous command. This is where the ability to run Python scripts inside a cmd2 application via the pyscript +command and the "pyscript <script> [arguments]" syntax comes into play. This application and the "script_conditional.py" script serve as an example for one way in which this can be done. """ |