Debian Codegraph @

docs/tests/__init__.py

raw
1 from pathlib import Path
2 import os
3
4 def get_toxworkdir_subdir(subdir:str) -> Path:
5 dir = Path(os.environ['TOX_WORK_DIR']).joinpath(subdir) \
6 if os.environ.get('TOX_WORK_DIR') else Path(os.getcwd()).joinpath(f'./.tox/{subdir}')
7 assert dir.exists(), f"Looks like {dir} not not exist!"
8 return dir