def find_bindir_path(config_file):
 try:
  fd = open(config_file)
 except IOError as e:
  utils.err(('Error for Config file (%s): %s' % (config_file, e)))
  return None
 try:
  for line in fd:
   if line.startswith('{path_config_bindir'):
    return line.split(',')[1].split('"')[1]
 finally:
  fd.close()

def find_bindir_path ( config_file ) : try : fd = open ( config_file ) except IOError as e : utils . err ( ( 'Error for Config file (%s): %s' % ( config_file , e ) ) ) return None try : for line in fd : if line . startswith ( '{path_config_bindir' ) : return line . split ( ',' ) [ 1 ] . split ( '"' ) [ 1 ] finally : fd . close ( )
returns the bin directory path .