Skip to content
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

Create new .netrc file when not present #9

Closed
shankardevy opened this issue Jul 22, 2018 · 2 comments
Closed

Create new .netrc file when not present #9

shankardevy opened this issue Jul 22, 2018 · 2 comments

Comments

@shankardevy
Copy link

When .netrc file is not present in the user's home directory, trying to save a new entry triggers FileNotFoundError.

Can this library automatically create one when .netrc is not found?

@sloria
Copy link
Owner

sloria commented Jul 25, 2018

Hm, the netrc from the stdlib upon which this is built raises an error if .netrc doesn't exist. I'd like to keep this lib consistent with that.

However, perhaps we could add a parameter to force creation if it doesn't exist:

Netrc(create=True)

I would welcome a PR for this.

@sloria
Copy link
Owner

sloria commented Dec 16, 2018

Closing this for now since I won't be working on it in the near future.

@sloria sloria closed this as completed Dec 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants