Added tests for running file with combinations of multiple default env files, env files, and env vars. Also reorganized environment directory in examples.

This commit is contained in:
cwandrews
2017-10-10 22:54:31 -04:00
parent e469ba30ba
commit af15647ab4
7 changed files with 83 additions and 32 deletions

View File

@ -83,12 +83,6 @@ def read(filename, module, install=False, quiet=False, verbose=False, default_en
for f in default_env_file:
env_file_path = env_dir.joinpath(f)
load_dotenv(env_file_path)
else:
try:
env_file_path = env_dir.joinpath('.env')
load_dotenv(env_file_path)
except FileNotFoundError:
pass
if default_env:
for e in default_env: