Skip to main content
Rewrite title so question doesn't look like it's asking the opposite of what it's asking
Link

How to append Append to an environment variable using anwithout overwriting values from .env file?

edited tags
Link
Gilles 'SO- stop being evil'
  • 865.4k
  • 205
  • 1.8k
  • 2.3k
Removed the EDIT on the question, as it is still a new issue
Source Link

Assuming the .env.env file is loaded before execution, how can you append to it without overriding it?

DEBUG=True
FOO=BAR
PYTHONPATH="/Users/James/project/"

The above file would (?) override it, and that would be bad. I could put it in .bash_profile or .profile, but that's not consistent with what I have now, and I only want to set it for the current virtualenvvirtualenv too.

EDIT: I don't think this makes any difference, but I'm using Mac OS X (the tutorial I was using was multi-platform)

Assuming the .env file is loaded before execution, how can you append to it without overriding it?

DEBUG=True
FOO=BAR
PYTHONPATH="/Users/James/project/"

The above file would (?) override it, and that would be bad. I could put it in .bash_profile or .profile, but that's not consistent with what I have now, and I only want to set it for the current virtualenv too.

EDIT: I don't think this makes any difference, but I'm using Mac OS X (the tutorial I was using was multi-platform)

Assuming the .env file is loaded before execution, how can you append to it without overriding it?

DEBUG=True
FOO=BAR
PYTHONPATH="/Users/James/project/"

The above file would (?) override it, and that would be bad. I could put it in .bash_profile or .profile, but that's not consistent with what I have now, and I only want to set it for the current virtualenv too.

I don't think this makes any difference, but I'm using Mac OS X (the tutorial I was using was multi-platform)

Source Link
Loading