Module stakkr.file_utils

Files Utils to find dir, files, etc.

Such as : static files locations or directories location

stakkr.file_utils.find_project_dir()[source]

Determine the project base dir, by searching a stakkr.yml file

stakkr.file_utils.get_dir(directory: str)[source]

Detect if stakkr is a package or a clone and gives the right path for a directory.

stakkr.file_utils.get_file(directory: str, filename: str)[source]

Detect if stakkr is a package or a clone and gives the right path for a file.

stakkr.file_utils.get_lib_basedir()[source]

Return the base directory of stakkr, where all files are, to read services and config.