MCPcopy Index your code
hub / github.com/python/cpython / subdir

Function subdir

Android/android.py:101–110  ·  view source on GitHub ↗
(*parts, create=False)

Source from the content-addressed store, hash-verified

99
100
101def subdir(*parts, create=False):
102 path = CROSS_BUILD_DIR.joinpath(*parts)
103 if not path.exists():
104 if not create:
105 sys.exit(
106 f"{path} does not exist. Create it by running the appropriate "
107 f"`configure` subcommand of {SCRIPT_NAME}.")
108 else:
109 path.mkdir(parents=True)
110 return path
111
112
113def run(command, *, host=None, env=None, log=True, **kwargs):

Callers 7

android_envFunction · 0.70
build_python_pathFunction · 0.70
configure_build_pythonFunction · 0.70
make_build_pythonFunction · 0.70
configure_host_pythonFunction · 0.70
make_host_pythonFunction · 0.70
packageFunction · 0.70

Calls 4

joinpathMethod · 0.45
existsMethod · 0.45
exitMethod · 0.45
mkdirMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…