parameters: (self)
return_statement: return self._webkit_base
docstring: Returns the absolute path to the top of the WebKit tree.
  
          Raises an AssertionError if the top dir can't be determined.
docstring_summary: Returns the absolute path to the top of the WebKit tree.
docstring_tokens: Returns the absolute path to the top of the WebKit tree .
function: def webkit_base(self):
          """Returns the absolute path to the top of the WebKit tree.
  
          Raises an AssertionError if the top dir can't be determined."""
          # Note: This code somewhat duplicates the code in
          # scm.find_checkout_root(). However, that code only works if the top
          # of the SCM repository also matches the top of the WebKit tree. Some SVN users
          # (the chromium test bots, for example), might only check out subdirectories like
          # Tools/Scripts. This code will also work if there is no SCM system at all.
          if not self._webkit_base:
              self._webkit_base = self._webkit_base
              module_path = self._filesystem.path_to_module(self.__module__)
              tools_index = module_path.rfind('Tools')
              assert tools_index != -1, "could not find location of this checkout from %s" % module_path
              self._webkit_base = self._filesystem.normpath(module_path[0:tools_index - 1])
          return self._webkit_base
function_tokens: def webkit_base ( self ) : # Note: This code somewhat duplicates the code in # scm.find_checkout_root(). However, that code only works if the top # of the SCM repository also matches the top of the WebKit tree. Some SVN users # (the chromium test bots, for example), might only check out subdirectories like # Tools/Scripts. This code will also work if there is no SCM system at all. if not self . _webkit_base : self . _webkit_base = self . _webkit_base module_path = self . _filesystem . path_to_module ( self . __module__ ) tools_index = module_path . rfind ( 'Tools' ) assert tools_index != - 1 , "could not find location of this checkout from %s" % module_path self . _webkit_base = self . _filesystem . normpath ( module_path [ 0 : tools_index - 1 ] ) return self . _webkit_base