-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define user .netrc directory [Feature request] #480
Comments
@Rapsodia86 would setting an environment variable work for you? For example: os.environ['NETRC'] = 'C:\some\path\to\netrc'
earthaccess.login(strategy="netrc") Would pick up your custom That's only a three line change here, I think: but plumbing in a new argument is a bit more work. Edit: Looks like the |
Yes, Thanks again! |
@Rapsodia86 sounds good!
How would you like it to work? Either could be supported, but I'd lean toward if the |
Yes, I agree! The consistent usage of |
Excellent decision, folks ;) |
FYI, we should simply be using |
fwiw, in GDAL this path is called:
In libcurl it is CURLOPT_NETRC_FILE |
Hello!
I would like to suggest an option to provide a user-specific directory to *.netrc file.
Now, it automatically looks into "C:\User\USERNAME\.netrc" (if in Windows).
However, I do have that file stored in another location that I use for my other scripts, and I do not see a reason to have it duplicated and spread across the machine.
How about adding the option in login like:
earthaccess.login(strategy="netrc")
earthaccess.login(strategy="netrc", dir="DIRECTORY\SUBDIRECTORY\")
Thanks!
The text was updated successfully, but these errors were encountered: