mò
ÒcGc           @   s;   d  Z  d k Z d k Z d „  Z e d j o	 d GHn d S(   s
   Avleen VigNc       	   C   s   t  i  ƒ  }  |  i t d ƒ ƒ |  i d d ƒ } |  i d d ƒ } |  i d d ƒ } |  i d d ƒ } t	 i
 d | d | d	 | d
 | ƒ } | S(   Ns   config/database.conft   databaset   db_unix_sockett   db_usernamet   db_passwordt   db_namet   unix_sockett   usert   passwdt   db(   t   ConfigParsert	   db_configt   readfpt   opent   getR   R   R   R   t   MySQLdbt   connectR   (   R
   R   R   R   R   R   (    (    t?   /home/avleen/devel/python/googlebot2/modules/googlebot_dblib.pyt   SetupDb
   s    t   __main__s/   This library is not intended to be run directly(   t
   __author__R	   R   R   t   __name__(   R	   R   R   R   (    (    R   t   ?   s    			
