Utilities
find_project_brand_yml
find_project_brand_yml(path)Find a project’s _brand.yml file
Finds the first _brand.yml file in or adjacent to path and its parents. If path is a file, find_project_brand_yml() starts looking in the path’s parent directory. In each directory, find_project_brand_yml() looks for any of the following files in the given order:
_brand.yml_brand.yamlbrand/_brand.ymlbrand/_brand.yaml_brand/_brand.yml_brand/_brand.yaml
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| Path | The path of the found _brand.yml. |
Raises
| Name | Type | Description |
|---|---|---|
| FileNotFoundError | If no _brand.yml is found in any of the directories above path. |