diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-06-21 06:54:58 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-06-21 06:54:58 -0400 |
commit | 98b57f380d4bedbbe9a0eea174075f8c62aea6bd (patch) | |
tree | 2b1a212898dfdc14be9f952585fd3c5abed42102 /examples/scripts/script.py | |
parent | 1b829f13cfa9460ddb6304d507ea30bfbb31c6e7 (diff) | |
download | cmd2-git-98b57f380d4bedbbe9a0eea174075f8c62aea6bd.tar.gz |
Moved example scripts from examples to examples/scripts directly
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.
Diffstat (limited to 'examples/scripts/script.py')
-rw-r--r-- | examples/scripts/script.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/scripts/script.py b/examples/scripts/script.py new file mode 100644 index 00000000..3f60c8fb --- /dev/null +++ b/examples/scripts/script.py @@ -0,0 +1,7 @@ +#!/usr/bin/env python +# coding=utf-8 +""" +Trivial example of a Python script which can be run inside a cmd2 application. +""" +print("This is a python script running ...") + |