# HG changeset patch # User catherine@Elli.myhome.westell.com # Date 1237456808 14400 # Node ID 0a7e97f79a60785974c1d3995cfc703dcdc25736 # Parent 1702ce785a8d5c42fc1da12b5725d92f08dfc2c9 tweaked error message diff -r 1702ce785a8d -r 0a7e97f79a60 cmd2.py --- a/cmd2.py Thu Mar 19 05:55:15 2009 -0400 +++ b/cmd2.py Thu Mar 19 06:00:08 2009 -0400 @@ -875,7 +875,7 @@ urlre = re.compile('(https?://[-\\w\\./]+)') def do_load(self, fname=None): - """Runs command(s) from a file.""" + """Runs script of command(s) from a file or URL.""" if fname is None: fname = self.default_file_name #keepstate = Statekeeper(self, ('stdin','use_rawinput','prompt','continuation_prompt')) @@ -895,7 +895,7 @@ target = open('%s.%s' % (os.path.expanduser(fname), self.defaultExtension), 'r') except IOError, e: - print 'Problem opening file %s: \n%s' % (fname, e) + print 'Problem accessing script from %s: \n%s' % (fname, e) keepstate.restore() return self.stdin = target