Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 624 Bytes

envs.rst

File metadata and controls

26 lines (16 loc) · 624 Bytes

Environment Variables

An environment variable set within uranium is active for not only the lifetime of the build, but for any entry points or scripts generated as well.

environment variables can be modified as a regular dictionary:

import os

def main(build):
    build.envvars["EDITOR"] = "emacs"
    build.envvars["LD_LIBRARY_PATH"] = os.path.join(build.root, "lib")

Full API Reference

uranium.environment_variables.EnvironmentVariables