diff mysqlpy.py @ 60:4f80329a1905

loading fix
author catherine.devlin@gmail.com
date Fri, 04 Apr 2008 13:40:35 -0400
parents de6278a3bf53
children 047f82acdc8f
line wrap: on
line diff
--- a/mysqlpy.py	Wed Apr 02 22:47:06 2008 -0400
+++ b/mysqlpy.py	Fri Apr 04 13:40:35 2008 -0400
@@ -9,7 +9,7 @@
 #           http://catherine.devlin.googlepages.com/
 
 from sqlpyPlus import *
-import binascii
+import binascii, sys
 
 class mysqlpy(sqlpyPlus):
     '''
@@ -152,6 +152,10 @@
 def run():
     my=mysqlpy()
     print my.__doc__
+    try:
+        my.do_connect(sys.argv[1])
+    except IndexError:
+        pass
     my.cmdloop()
 
 if __name__ == '__main__':