From 98b57f380d4bedbbe9a0eea174075f8c62aea6bd Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Wed, 21 Jun 2017 06:54:58 -0400 Subject: 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. --- examples/scripts/script.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 examples/scripts/script.py (limited to 'examples/scripts/script.py') 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 ...") + -- cgit v1.2.1