(target: Path)
| 13 | |
| 14 | @contextlib.contextmanager |
| 15 | def chdir(target: Path) -> Iterator[None]: |
| 16 | # Replace with contextlib.chdir in Python 3.11 |
| 17 | dir = os.getcwd() |
| 18 | os.chdir(target) |
| 19 | try: |
| 20 | yield |
| 21 | finally: |
| 22 | os.chdir(dir) |
| 23 | |
| 24 | |
| 25 | def write_config(path: Path, content: str | None = None) -> None: |
no outgoing calls
no test coverage detected
searching dependent graphs…