def look_ropeproject(path):
 env.debug('Look project', path)
 p = os.path.abspath(path)
 while True:
  if ('.ropeproject' in os.listdir(p)):
   return p
  new_p = os.path.abspath(os.path.join(p, '..'))
  if (new_p == p):
   return path
  p = new_p

def look_ropeproject ( path ) : env . debug ( 'Look project' , path ) p = os . path . abspath ( path ) while True : if ( '.ropeproject' in os . listdir ( p ) ) : return p new_p = os . path . abspath ( os . path . join ( p , '..' ) ) if ( new_p == p ) : return path p = new_p
search for ropeproject in current and parent dirs .