def test_custom(conf):
 try:
  (path, filename) = os.path.split(conf)
  if (path != ETC_LIRC):
   return True
  else:
   return False
 except:
  return False

def test_custom ( conf ) : try : ( path , filename ) = os . path . split ( conf ) if ( path != ETC_LIRC ) : return True else : return False except : return False
returns a boolean indicating whether the supplied conf file is a custom conf file .