summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
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