MCPcopy Create free account
hub / github.com/pytorch/executorch / _root_dir

Method _root_dir

setup.py:112–117  ·  view source on GitHub ↗

The path to the root of the git repo.

(cls)

Source from the content-addressed store, hash-verified

110
111 @classmethod
112 def _root_dir(cls) -> str:
113 """The path to the root of the git repo."""
114 if cls.__root_dir_attr is None:
115 # This setup.py file lives in the root of the repo.
116 cls.__root_dir_attr = str(Path(__file__).parent.resolve())
117 return str(cls.__root_dir_attr)
118
119 @classmethod
120 def git_hash(cls) -> Optional[str]:

Callers 2

git_hashMethod · 0.80
stringMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected