A context manager that sets the current working directory.
(subdir: Path)
| 241 | |
| 242 | @contextmanager |
| 243 | def cwd(subdir: Path): |
| 244 | """A context manager that sets the current working directory.""" |
| 245 | orig = os.getcwd() |
| 246 | os.chdir(subdir) |
| 247 | yield |
| 248 | os.chdir(orig) |
| 249 | |
| 250 | |
| 251 | def configure_build_python(context: argparse.Namespace) -> None: |
no outgoing calls
no test coverage detected