def download_config():
 if (not os.path.exists(CONFIG_PATH)):
  os.makedirs(CONFIG_PATH)
 if os.path.exists((CONFIG_PATH + CONFIG_FILE)):
  os.remove((CONFIG_PATH + CONFIG_FILE))
 conf_file_local = open((CONFIG_PATH + CONFIG_FILE), 'wb')
 print '[*] Downloading config file..'
 conf_file = urlrequest.urlopen(CONFIG_URL)
 print '[*] Saving to File {}'.format(CONFIG_FILE)
 conf_file_local.write(bytes(conf_file.read()))
 conf_file_local.close()

def download_config ( ) : if ( not os . path . exists ( CONFIG_PATH ) ) : os . makedirs ( CONFIG_PATH ) if os . path . exists ( ( CONFIG_PATH + CONFIG_FILE ) ) : os . remove ( ( CONFIG_PATH + CONFIG_FILE ) ) conf_file_local = open ( ( CONFIG_PATH + CONFIG_FILE ) , 'wb' ) print '[*] Downloading config file..' conf_file = urlrequest . urlopen ( CONFIG_URL ) print '[*] Saving to File {}' . format ( CONFIG_FILE ) conf_file_local . write ( bytes ( conf_file . read ( ) ) ) conf_file_local . close ( )
download initial config file .