-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#54111] Create module with env variables used by pyrenode3
Signed-off-by: Franciszek Zdobylak <fzdobylak@antmicro.com>
- Loading branch information
Showing
3 changed files
with
33 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import os | ||
|
||
# Env variable names | ||
PYRENODE_BUILD_DIR = "PYRENODE_BUILD_DIR" | ||
PYRENODE_BUILD_OUTPUT = "PYRENODE_BUILD_OUTPUT" | ||
PYRENODE_PKG = "PYRENODE_PKG" | ||
PYRENODE_RUNTIME = "PYRENODE_RUNTIME" | ||
PYRENODE_SKIP_LOAD = "PYRENODE_SKIP_LOAD" | ||
|
||
# Values of env variables | ||
pyrenode_build_dir = os.environ.get(PYRENODE_BUILD_DIR) | ||
pyrenode_build_output = os.environ.get(PYRENODE_BUILD_OUTPUT) | ||
pyrenode_pkg = os.environ.get(PYRENODE_PKG) | ||
pyrenode_runtime = os.environ.get(PYRENODE_RUNTIME, "mono") | ||
pyrenode_skip_load = os.environ.get(PYRENODE_SKIP_LOAD) |
This file contains 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