# HG changeset patch # User catherine@Elli.myhome.westell.com # Date 1235786890 18000 # Node ID 05c0e28306d35461b8d98cb96feea9a4c9b41635 # Parent 12c2d23caf1951ac845d3613a016d2fe881f915c expanding ~ in file names diff -r 12c2d23caf19 -r 05c0e28306d3 cmd2.py --- a/cmd2.py Thu Feb 26 12:50:22 2009 -0500 +++ b/cmd2.py Fri Feb 27 21:08:10 2009 -0500 @@ -744,7 +744,8 @@ def do_load(self, fname=None): """Runs command(s) from a file.""" if fname is None: - fname = self.defaultFileName + fname = self.defaultFileName + fname = os.path.expanduser(fname) keepstate = Statekeeper(self, ('stdin','use_rawinput','prompt','continuationPrompt')) if isinstance(fname, file): self.stdin = fname