craft_parts.dirs module¶
Definitions for project directories.
- class craft_parts.dirs.ProjectDirs(*, partitions=None, work_dir='.')¶
Bases:
objectThe project’s main work directories.
- Parameters:
- Variables:
work_dir – The root of the work directories used for project processing.
parts_dir – The directory containing work subdirectories for each part.
overlay_dir – The directory containing work subdirectories for overlays.
overlay_mount_dir – The mountpoint for the overlay filesystem.
overlay_packages_dir – The cache directory for overlay packages.
overlay_work_dir – The work directory for the overlay filesystem.
stage_dir – The staging area containing installed files from all parts.
prime_dir – The primed tree containing the final artifacts to deploy.
- get_prime_dir(partition=None)¶
Get the prime directory for the given partition.