You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2019/09/26 19:51:00 UTC
[qpid-proton] branch master updated: PROTON-2110: [Python] Expand
tilde symbol as user's home directory when searching for connect.json file
This is an automated email from the ASF dual-hosted git repository.
astitcher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
The following commit(s) were added to refs/heads/master by this push:
new 822413e PROTON-2110: [Python] Expand tilde symbol as user's home directory when searching for connect.json file
822413e is described below
commit 822413ea1ac9e08d764ebb788beff2be049c3a01
Author: Radim Kubis <rk...@redhat.com>
AuthorDate: Thu Sep 26 15:51:07 2019 +0200
PROTON-2110: [Python] Expand tilde symbol as user's home directory when searching for connect.json file
---
python/proton/_reactor.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/proton/_reactor.py b/python/proton/_reactor.py
index a8a661c..27c228e 100644
--- a/python/proton/_reactor.py
+++ b/python/proton/_reactor.py
@@ -1051,7 +1051,7 @@ class SSLConfig(object):
def _find_config_file():
confname = 'connect.json'
- confpath = ['.', '~/.config/messaging','/etc/messaging']
+ confpath = ['.', os.path.expanduser('~/.config/messaging'), '/etc/messaging']
for d in confpath:
f = os.path.join(d, confname)
if os.path.isfile(f):
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org