def FindRegisterApp(appName, knownFiles, searchPaths):
 import regutil, string
 if (type(knownFiles) == type('')):
  knownFiles = [knownFiles]
 paths = []
 try:
  for knownFile in knownFiles:
   pathLook = FindAppPath(appName, knownFile, searchPaths)
   if pathLook:
    paths.append(pathLook)
 except error as details:
  print '*** ', details
  return
 regutil.RegisterNamedPath(appName, ';'.join(paths))

def FindRegisterApp ( appName , knownFiles , searchPaths ) : import regutil , string if ( type ( knownFiles ) == type ( '' ) ) : knownFiles = [ knownFiles ] paths = [ ] try : for knownFile in knownFiles : pathLook = FindAppPath ( appName , knownFile , searchPaths ) if pathLook : paths . append ( pathLook ) except error as details : print '*** ' , details return regutil . RegisterNamedPath ( appName , ';' . join ( paths ) )
find and register a package .