Skip to content

Commit

Permalink
Merge pull request #136 from python-cmd2/scripts_dir
Browse files Browse the repository at this point in the history
Moved example scripts from examples to examples/scripts directly
  • Loading branch information
tleonhardt committed Jun 21, 2017
2 parents 1b829f1 + 98b57f3 commit 8b570a5
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 8b570a5

Please sign in to comment.