summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <tleonhardt@gmail.com>2017-06-13 16:16:13 -0400
committerTodd Leonhardt <tleonhardt@gmail.com>2017-06-13 16:16:13 -0400
commitc0245f39a3bbdfd9de704577fc8931ddae9a9b76 (patch)
treed5e0e6d4b2cd8b70acb81eede7558c558399bc4b /cmd2.py
parenta8c64342d13ed0271132d9c41608554db5d5b425 (diff)
downloadcmd2-git-c0245f39a3bbdfd9de704577fc8931ddae9a9b76.tar.gz
pyscript now expands the script path before calling do_py
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index aabda96e..4457c40f 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -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