def _detect_django_path(module_path):
 result = []
 for parent in traverse_parents(module_path):
  with common.ignored(IOError):
   with open(((parent + os.path.sep) + 'manage.py')):
    debug.dbg('Found django path: %s', module_path)
    result.append(parent)
 return result

def _detect_django_path ( module_path ) : result = [ ] for parent in traverse_parents ( module_path ) : with common . ignored ( IOError ) : with open ( ( ( parent + os . path . sep ) + 'manage.py' ) ) : debug . dbg ( 'Found django path: %s' , module_path ) result . append ( parent ) return result
detects the path of the very well known django library .