def FindVssProjectInfo(fullfname):
 (path, fnameonly) = os.path.split(fullfname)
 origPath = path
 project = ''
 retPaths = [fnameonly]
 while (not project):
  iniName = os.path.join(path, g_iniName)
  database = win32api.GetProfileVal('Python', 'Database', '', iniName)
  project = win32api.GetProfileVal('Python', 'Project', '', iniName)
  if project:
   break
  (path, addpath) = os.path.split(path)
  if (not addpath):
   break
  retPaths.insert(0, addpath)
 if (not project):
  win32ui.MessageBox(('%s\r\n\r\nThis directory is not configured for Python/VSS' % origPath))
  return
 return (project, '/'.join(retPaths), database)

def FindVssProjectInfo ( fullfname ) : ( path , fnameonly ) = os . path . split ( fullfname ) origPath = path project = '' retPaths = [ fnameonly ] while ( not project ) : iniName = os . path . join ( path , g_iniName ) database = win32api . GetProfileVal ( 'Python' , 'Database' , '' , iniName ) project = win32api . GetProfileVal ( 'Python' , 'Project' , '' , iniName ) if project : break ( path , addpath ) = os . path . split ( path ) if ( not addpath ) : break retPaths . insert ( 0 , addpath ) if ( not project ) : win32ui . MessageBox ( ( '%s\r\n\r\nThis directory is not configured for Python/VSS' % origPath ) ) return return ( project , '/' . join ( retPaths ) , database )
looks up the file system for an ini file describing the project .