diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-06-26 09:13:27 -0700 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-06-26 09:13:27 -0700 |
commit | 953aa31751da367aeac41145a7f9da43e69dcc1b (patch) | |
tree | 0326fc1699433b778e203c1e79a52c119c4a73bc | |
parent | 63aa28c284a9c854b950f4bf2dbe4aa438f21365 (diff) | |
download | cmd2-git-953aa31751da367aeac41145a7f9da43e69dcc1b.tar.gz |
Fix bug for startup script with spaces
-rw-r--r-- | cmd2/cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index dade920a..85439927 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -452,7 +452,7 @@ class Cmd(cmd.Cmd): if startup_script is not None: startup_script = os.path.expanduser(startup_script) if os.path.exists(startup_script) and os.path.getsize(startup_script) > 0: - self.cmdqueue.append('load {}'.format(startup_script)) + self.cmdqueue.append("load '{}'".format(startup_script)) ############################################################################################################ # The following variables are used by tab-completion functions. They are reset each time complete() is run |