Skip to content

Commit 9881628

Browse files
committed
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
1 parent 7b2fd8c commit 9881628

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/auth/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def load_config(config_path=None):
115115
conf = {}
116116
data = None
117117

118-
config_file = config_path or os.path.join(os.environ.get('HOME', '.'),
118+
config_file = config_path or os.path.join(os.path.expanduser('~'),
119119
DOCKER_CONFIG_FILENAME)
120120

121121
# if config path doesn't exist return empty config

0 commit comments

Comments
 (0)