File tree Expand file tree Collapse file tree 5 files changed +2
-2
lines changed Expand file tree Collapse file tree 5 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1212from the previous command. This is where the ability to run Python scripts inside a cmd2 application via the pyscript
1313command and the "pyscript <script> [arguments]" syntax comes into play.
1414
15- This application and the "script_conditional .py" script serve as an example for one way in which this can be done.
15+ This application and the "scripts/conditional .py" script serve as an example for one way in which this can be done.
1616"""
1717import functools
1818import os
File renamed without changes.
Original file line number Diff line number Diff line change 44
55To run it you should do the following:
66 ./python_scripting.py
7- pyscript script_conditional .py directory_path
7+ pyscript scripts/conditional .py directory_path
88
99Note: The "cmd" function is defined within the cmd2 embedded Python environment and in there "self" is your cmd2
1010application instance.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments