We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b98609 commit 1b4e7beCopy full SHA for 1b4e7be
src/IBM.WatsonDeveloperCloud/Util/Utility.cs
@@ -155,6 +155,12 @@ public static List<string> GetCredentialsPaths()
155
filePathsToLoad.Add(windowsHomePath);
156
}
157
158
+ string userProfilePath = Environment.ExpandEnvironmentVariables("%USERPROFILE%") + "\\ibm-credentials.env";
159
+ if (!string.IsNullOrEmpty(Environment.ExpandEnvironmentVariables("%USERPROFILE%")) && File.Exists(userProfilePath))
160
+ {
161
+ filePathsToLoad.Add(userProfilePath);
162
+ }
163
+
164
if (File.Exists(@"ibm-credentials.env"))
165
{
166
filePathsToLoad.Add(@"ibm-credentials.env");
0 commit comments