@task
@timed
def i18n_validate_transifex_config():
 home = path('~').expanduser()
 config = (home / '.transifexrc')
 if ((not config.isfile) or (config.getsize == 0)):
  msg = colorize('red', 'Cannot connect to Transifex, config file is missing or empty: {config} \nSee http://help.transifex.com/features/client/#transifexrc \n'.format(config=config))
  sys.stderr.write(msg)
  sys.exit(1)

@ task @ timed def i18n_validate_transifex_config ( ) : home = path ( '~' ) . expanduser ( ) config = ( home / '.transifexrc' ) if ( ( not config . isfile ) or ( config . getsize == 0 ) ) : msg = colorize ( 'red' , 'Cannot connect to Transifex, config file is missing or empty: {config} \nSee http://help.transifex.com/features/client/#transifexrc \n' . format ( config = config ) ) sys . stderr . write ( msg ) sys . exit ( 1 )
make sure config file with username/password exists .