MCPcopy Create free account
hub / github.com/bpython/bpython / _guess_source_dir

Method _guess_source_dir

setup.py:136–143  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

134 self.keep_going = False
135
136 def _guess_source_dir(self) -> str:
137 for guess in ("doc", "docs"):
138 if not os.path.isdir(guess):
139 continue
140 for root, dirnames, filenames in os.walk(guess):
141 if "conf.py" in filenames:
142 return root
143 return os.curdir
144
145 def finalize_options(self) -> None:
146 self.ensure_string_list("builder")

Callers 1

finalize_optionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected