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 a34ed048..3fe13f54 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1554,7 +1554,7 @@ class Cmd(cmd.Cmd):
interp = InteractiveConsole(locals=localvars)
interp.runcode('import sys, os;sys.path.insert(0, os.getcwd())')
- if arg.strip():
+ if arg:
interp.runcode(arg)
else:
# noinspection PyShadowingBuiltins