parameters: (module_path)
return_statement: return result
docstring: Detects the path of the very well known Django library (if used)
docstring_summary: Detects the path of the very well known Django library (if used)
docstring_tokens: Detects the path of the very well known Django library ( if used )
function: def detect_django_path(module_path):
      """ Detects the path of the very well known Django library (if used) """
      result = []
      while True:
          new = os.path.dirname(module_path)
          # If the module_path doesn't change anymore, we're finished -> /
          if new == module_path:
              break
          else:
              module_path = new
  
          with common.ignored(IOError):
              with open(module_path + os.path.sep + 'manage.py'):
                  debug.dbg('Found django path: %s' % module_path)
                  result.append(module_path)
      return result
function_tokens: def detect_django_path ( module_path ) : result = [ ] while True : new = os . path . dirname ( module_path ) # If the module_path doesn't change anymore, we're finished -> / if new == module_path : break else : module_path = new with common . ignored ( IOError ) : with open ( module_path + os . path . sep + 'manage.py' ) : debug . dbg ( 'Found django path: %s' % module_path ) result . append ( module_path ) return result