summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd2.py b/cmd2.py
index 0177a18d..b04bf215 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1431,8 +1431,7 @@ Paths or arguments that contain spaces must be enclosed in quotes
sys.argv.extend(arg[1:])
# Run the script - use repr formatting to escape things which need to be escaped to prevent issues on Windows
- py_cmd = "run({!r})".format(script_path)
- self.do_py(py_cmd)
+ self.do_py("run({!r})".format(script_path))
# Restore command line arguments to original state
sys.argv = orig_args