Skip to content

Allow references in .env file #3275

@Flamefire

Description

@Flamefire

Currently the .env file is not a real dot-env-file because it is a simple list of name=value pairs. However "real" .env supports string references: see https://marketplace.visualstudio.com/items?itemName=mikestead.dotenv

Why is this important?

I set up my PYTHONPATH in the .env file to mirror runtime set env variables so I can use the integrated debugger. This becomes quite lengthy so I tried:

REPO="/home/user/git/foobar"
PYTHONPATH="${REPO}/foo:${REPO}/bar"
# Or
PYTHONPATH="${REPO}/foo"
PYTHONPATH="${PYTHONPATH}:${REPO}/bar"

Would be great, if this was allowed.

Metadata

Metadata

Labels

feature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions