Skip to content

Commit

Permalink
Define env var to describe the project
Browse files Browse the repository at this point in the history
  • Loading branch information
osechet committed Dec 5, 2017
1 parent 9010be6 commit bdd9e8a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bldlib/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ def load_project(project_dir):
else:
custom_args = []

# Set specific environment variables
os.environ['BLD_PROJECT_HOME'] = project_dir
os.environ['BLD_PROJECT_NAME'] = project_module.NAME
os.environ['BLD_PROJECT_VERSION'] = project_module.VERSION

return Project(project_module,
project_module.NAME,
project_module.VERSION,
Expand Down

0 comments on commit bdd9e8a

Please sign in to comment.