question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotenv configuration

See original GitHub issue
  1. I am using the latest version of Flask which supports .env files when python-dotenv package is installed. It conflicts with dotenv package vendored within pipenv.

It would be nice to have dont_load_env (default false) at pipenv section within Pipfile so there will be no need to provide PIPENV_DONT_LOAD_ENV=1 every time running pipenv. It would be useful not only in case of Flask usage but in case I want to use python-dotenv on my own.

  1. Pipenv loads .env file using override=True argument so I cannot overwrite environment from CLI: VAR=1 pipenv run ....

It would be great to have dont_override_env (default false) at pipenv section within Pipfile (and PIPENV_DONT_OVERRIDE_ENV environment variable also).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
decazcommented, Oct 23, 2018

Hmm… So if I want to override some environment variable once for a single command run then I should replace its value within my .env and after that return it back?

0reactions
techalchemycommented, Oct 30, 2018

I am definitely not accepting a PR that adds a project setting to the pipfile without Kenneth signing off on it, you need to submit a PEEP if you want that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dotenv
Loads environment variables from .env file. Latest version: 16.0.3, last published: 3 months ago. Start using dotenv in your project by ...
Read more >
motdotla/dotenv: Loads environment variables from .env for ...
Dotenv is a zero-dependency module that loads environment variables from a .env file into process.env . Storing configuration in the environment separate from ......
Read more >
How to Use Node Environment Variables with a DotEnv ...
To use DotEnv, first install it using the command: npm i dotenv . Then in your app, require and configure the package like...
Read more >
Dotenv tutorial - loading environment variables in ...
The dotenv is a zero-dependency module that loads environment variables from a .env file into process.env . Storing configuration in the ...
Read more >
python-dotenv
python-dotenv. Build Status PyPI version. Python-dotenv reads key-value pairs from a .env file and can set them as environment variables.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found