diff options
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 15175123..03fc719e 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -3356,9 +3356,9 @@ class Cmd(cmd.Cmd): if not self.editor: raise EnvironmentError("Please use 'set editor' to specify your text editing program of choice.") - command = utils.quote_string_if_needed(self.editor) + command = utils.quote_string_if_needed(os.path.expanduser(self.editor)) if args.file_path: - command += " " + utils.quote_string_if_needed(args.file_path) + command += " " + utils.quote_string_if_needed(os.path.expanduser(args.file_path)) self.do_shell(command) |