From 9881628ff77edfe541293ea37d11e20c7d1e1916 Mon Sep 17 00:00:00 2001 From: Matt Moore Date: Thu, 21 May 2015 12:59:38 -0700 Subject: [PATCH] Update docker-py to use a more portable sense of HOME. This makes docker-py consistent with Docker's newish way of establishing the path to .dockercfg: https://github.com/docker/docker/blob/master/pkg/homedir/homedir.go --- docker/auth/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/auth/auth.py b/docker/auth/auth.py index 373df565..a890fceb 100644 --- a/docker/auth/auth.py +++ b/docker/auth/auth.py @@ -115,7 +115,7 @@ def load_config(config_path=None): conf = {} data = None - config_file = config_path or os.path.join(os.environ.get('HOME', '.'), + config_file = config_path or os.path.join(os.path.expanduser('~'), DOCKER_CONFIG_FILENAME) # if config path doesn't exist return empty config