diff options
author | Todd Leonhardt <tleonhardt@gmail.com> | 2017-06-13 16:16:13 -0400 |
---|---|---|
committer | Todd Leonhardt <tleonhardt@gmail.com> | 2017-06-13 16:16:13 -0400 |
commit | c0245f39a3bbdfd9de704577fc8931ddae9a9b76 (patch) | |
tree | d5e0e6d4b2cd8b70acb81eede7558c558399bc4b /cmd2.py | |
parent | a8c64342d13ed0271132d9c41608554db5d5b425 (diff) | |
download | cmd2-git-c0245f39a3bbdfd9de704577fc8931ddae9a9b76.tar.gz |
pyscript now expands the script path before calling do_py
Diffstat (limited to 'cmd2.py')
-rwxr-xr-x | cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1611,7 +1611,7 @@ Paths or arguments that contain spaces must be enclosed in quotes sys.argv.extend(arg[1:]) # Run the script - self.do_py("run('{}')".format(arg[0])) + self.do_py("run('{}')".format(script_path)) # Restore command line arguments to original state sys.argv = orig_args |