mirror of https://github.com/docker/docker-py.git
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:
parent
7b2fd8cf5e
commit
9881628ff7
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue