diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-24 13:58:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-24 13:58:42 -0400 |
commit | b823665299593fa2f12a5f1a86af11dbb6b7bc4b (patch) | |
tree | b59fc95248a707e0c3ef69874cfccf24c9c5b392 /tests/pyscript/recursive.py | |
parent | 346589e7e81adcd2aff883776249778d57eb4faf (diff) | |
parent | 29eeef6829fc7fc4a7e706d90871e8c347de773a (diff) | |
download | cmd2-git-b823665299593fa2f12a5f1a86af11dbb6b7bc4b.tar.gz |
Merge pull request #739 from python-cmd2/presentation_stuff
Presentation stuff
Diffstat (limited to 'tests/pyscript/recursive.py')
-rw-r--r-- | tests/pyscript/recursive.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/pyscript/recursive.py b/tests/pyscript/recursive.py new file mode 100644 index 00000000..21550592 --- /dev/null +++ b/tests/pyscript/recursive.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python +# coding=utf-8 +# flake8: noqa F821 +""" +Example demonstrating that calling run_pyscript recursively inside another Python script isn't allowed +""" +import os + +app.cmd_echo = True +my_dir = (os.path.dirname(os.path.realpath(sys.argv[0]))) +app('run_pyscript {}'.format(os.path.join(my_dir, 'stop.py'))) |