Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python-dotenv support #195

Open
paoslaos opened this issue Nov 11, 2023 · 1 comment
Open

python-dotenv support #195

paoslaos opened this issue Nov 11, 2023 · 1 comment

Comments

@paoslaos
Copy link

The readme on the main page is quite nice and helps in using environment variables. Is there a way to use variables that are defined via a python-dotenv file?

# don't use os but a dot env?
{% set conda_py = os.environ.get('CONDA_PY', '35') %}
name: web-ui-py{{ conda_py }}

includes:
  - {{ root }}/../core-business/environment.devenv.yml

The dotenv is just a file that looks like this:

# Development settings
CONDA_PY='35'
@nicoddemus
Copy link
Member

Hi @paoslaos,

Not currently. We would be willing to review a PR introducing this feature, with python-dotenv being an optional dependency.

@nicoddemus nicoddemus changed the title Question: Is it possible to load environment variables from an dotenv file? python-dotenv support Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants