Persist a full dict back to the .env file.
(self, env)
| 48 | return env |
| 49 | |
| 50 | def _write_env_dict(self, env): |
| 51 | """Persist a full dict back to the .env file.""" |
| 52 | with open(self.env_file_path, 'w') as f: |
| 53 | for key, value in env.items(): |
| 54 | f.write(f'{key}={value}\n') |
| 55 | |
| 56 | def get_env_key(self, key): |
| 57 | """Return the value of *key* from os.environ or the .env file.""" |
no test coverage detected