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 12
12
from the previous command. This is where the ability to run Python scripts inside a cmd2 application via the pyscript
13
13
command and the "pyscript <script> [arguments]" syntax comes into play.
14
14
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.
16
16
"""
17
17
import functools
18
18
import os
File renamed without changes.
Original file line number Diff line number Diff line change 4
4
5
5
To run it you should do the following:
6
6
./python_scripting.py
7
- pyscript script_conditional .py directory_path
7
+ pyscript scripts/conditional .py directory_path
8
8
9
9
Note: The "cmd" function is defined within the cmd2 embedded Python environment and in there "self" is your cmd2
10
10
application instance.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments