Skip to content

Commit 8b570a5

Browse files
authored
Merge pull request #136 from python-cmd2/scripts_dir
Moved example scripts from examples to examples/scripts directly
2 parents 1b829f1 + 98b57f3 commit 8b570a5

File tree

5 files changed

+2
-2
lines changed

5 files changed

+2
-2
lines changed

examples/python_scripting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from the previous command. This is where the ability to run Python scripts inside a cmd2 application via the pyscript
1313
command 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
"""
1717
import functools
1818
import os
File renamed without changes.

examples/script_conditional.py renamed to examples/scripts/conditional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
To 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
99
Note: The "cmd" function is defined within the cmd2 embedded Python environment and in there "self" is your cmd2
1010
application instance.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)