from pyprojroot import find_root, has_file PROJECT_ROOT_DIR = find_root(criterion=has_file(file="README.md"))