File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -111,16 +111,16 @@ def read_from_credential_file(service_name, separator='='):
111
111
# File path specified by an env variable
112
112
credential_file_path = getenv ('IBM_CREDENTIALS_FILE' )
113
113
114
- # Home directory
114
+ # Top-level of the project directory
115
115
if credential_file_path is None :
116
- file_path = join (expanduser ('~' ), DEFAULT_CREDENTIALS_FILE_NAME )
116
+ file_path = join (
117
+ dirname (dirname (abspath (__file__ ))), DEFAULT_CREDENTIALS_FILE_NAME )
117
118
if isfile (file_path ):
118
119
credential_file_path = file_path
119
120
120
- # Top-level of the project directory
121
+ # Home directory
121
122
if credential_file_path is None :
122
- file_path = join (
123
- dirname (dirname (abspath (__file__ ))), DEFAULT_CREDENTIALS_FILE_NAME )
123
+ file_path = join (expanduser ('~' ), DEFAULT_CREDENTIALS_FILE_NAME )
124
124
if isfile (file_path ):
125
125
credential_file_path = file_path
126
126
You can’t perform that action at this time.
0 commit comments