parameters: (self, path)
return_statement: return partial_paths
docstring: Turn "foo/bar/baz/zot" into ["foo/bar/baz", "foo/bar", "foo"].
docstring_summary: Turn "foo/bar/baz/zot" into ["foo/bar/baz", "foo/bar", "foo"].
docstring_tokens: Turn foo / bar / baz / zot into [ foo / bar / baz foo / bar foo ] .
function: def _partial_paths(self, path):
          '''
          Turn "foo/bar/baz/zot" into ["foo/bar/baz", "foo/bar", "foo"].
          '''
          partial_paths = []
          partial_path = path
          while partial_path:
              partial_path = mozpack.path.dirname(partial_path)
              if partial_path:
                  partial_paths.append(partial_path)
          return partial_paths
function_tokens: def _partial_paths ( self , path ) : partial_paths = [ ] partial_path = path while partial_path : partial_path = mozpack . path . dirname ( partial_path ) if partial_path : partial_paths . append ( partial_path ) return partial_paths