diff options
author | Matt Moore <mattmoor@google.com> | 2015-05-21 12:59:38 -0700 |
---|---|---|
committer | Matt Moore <mattmoor@google.com> | 2015-05-21 12:59:38 -0700 |
commit | 9881628ff77edfe541293ea37d11e20c7d1e1916 (patch) | |
tree | 09e32504b895fbe9e7a732f4bbb2f93bd5b6fef1 | |
parent | 7b2fd8cf5ef3bbcbecd190eba39a33b3708ff33b (diff) | |
download | docker-py-9881628ff77edfe541293ea37d11e20c7d1e1916.tar.gz |
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
-rw-r--r-- | docker/auth/auth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/auth/auth.py b/docker/auth/auth.py index 373df56..a890fce 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 |