Test get_project_name from env file

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2016-03-08 17:18:04 -08:00
commit f48da96e8b
2 changed files with 19 additions and 1 deletions

View file

@ -49,7 +49,7 @@ class Environment(dict):
return result
env_file_path = os.path.join(base_dir, '.env')
try:
result.update(env_vars_from_file(env_file_path))
return cls(env_vars_from_file(env_file_path))
except ConfigurationError:
pass
return result