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
This commit is contained in:
Matt Moore 2015-05-21 12:59:38 -07:00
parent 7b2fd8cf5e
commit 9881628ff7
1 changed files with 1 additions and 1 deletions

View File

@ -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