Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
lifecycle: add SNAPCRAFT_PROJECT_DIR
With out of tree builds there is no link to project root anymore,
which is important for scriptlets.
  • Loading branch information
abitrolly authored Feb 9, 2019
commit 85f9815483cdda206b5acd0a7b1cb94744f95c39
1 change: 1 addition & 0 deletions snapcraft/internal/project_loader/_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def snapcraft_global_environment(project: project.Project) -> Dict[str, str]:
"SNAPCRAFT_PROJECT_NAME": name,
"SNAPCRAFT_PROJECT_VERSION": version,
"SNAPCRAFT_PROJECT_GRADE": grade,
"SNAPCRAFT_PROJECT_DIR": project._project_dir,
"SNAPCRAFT_STAGE": project.stage_dir,
"SNAPCRAFT_PRIME": project.prime_dir,
"SNAPCRAFT_EXTENSIONS_DIR": common.get_extensionsdir(),
Expand Down