This repository was archived by the owner on Feb 5, 2026. It is now read-only.
Set environment variables to provide context to scripts#1324
Open
brandon-avantus wants to merge 1 commit intoastral-sh:mainfrom
Open
Set environment variables to provide context to scripts#1324brandon-avantus wants to merge 1 commit intoastral-sh:mainfrom
brandon-avantus wants to merge 1 commit intoastral-sh:mainfrom
Conversation
Sets the environment variables listed below to allow scripts to have
some context when determining what to do and where to do it. This also
provides some information to create Python packages for experimenting
with some suggested `rye run` features.
Environment Variables:
WORKING_DIR: Initial working directory. Useful in env files
RYE: Full path of the rye executable running the command. Useful for
scripts that call rye
RYE_RUN_CMD: Name of the command being run. Helpful for commands that
run the same script to differentiate the command or for scripts
to read the command entry from pyproject.toml
PROJECT_ROOT: Full path of the directory containing pyproject.toml.
Useful for scripts to do work relative to the project root or
that need to read the pyproject.toml.
WORKSPACE_ROOT: Full path of the workspace. Similar to PROJECT_ROOT,
but for the workspace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sets the environment variables listed below to allow scripts to have some context when determining what to do and where to do it. This also provides some information to create Python packages for experimenting with some suggested
rye runfeatures.Environment Variables:
The variables are set on the process before processing env files so they may be used in those files.