Skip to content

Commit

Permalink
Moved example scripts from examples to examples/scripts directly
Browse files Browse the repository at this point in the history
Cleaned up the examples directory by adding a scripts subdirectory.

This makes it a bit clearer which Python files are example cmd2 applications and which are example Python scripts for use with the pyscript command.
  • Loading branch information
tleonhardt committed Jun 21, 2017
1 parent 1b829f1 commit 98b57f3
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/python_scripting.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
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.
This application and the "scripts/conditional.py" script serve as an example for one way in which this can be done.
"""
import functools
import os
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
To run it you should do the following:
./python_scripting.py
pyscript script_conditional.py directory_path
pyscript scripts/conditional.py directory_path
Note: The "cmd" function is defined within the cmd2 embedded Python environment and in there "self" is your cmd2
application instance.
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 98b57f3

Please sign in to comment.