diff cmd2.py @ 224:0a7e97f79a60

tweaked error message
author catherine@Elli.myhome.westell.com
date Thu, 19 Mar 2009 06:00:08 -0400
parents 1702ce785a8d
children 061db156c99f
line wrap: on
line diff
--- 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