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

Resolve pwd - ModuleNotFoundError on Windows #12

Closed
wants to merge 1 commit into from
Closed

Resolve pwd - ModuleNotFoundError on Windows #12

wants to merge 1 commit into from

Conversation

trevorbayless
Copy link

@trevorbayless trevorbayless commented Jan 17, 2021

The pwd module used to get the username for display is Unix specific. Therefore, on Windows when attempting to import pwd the error ModuleNotFoundError: No module named pwd comes up and the program terminates. Utilizing the getpass module is the portable solution.

I have tested this implementation on Windows 10, Mac, and Debian.

Resolves #10

The `pwd` module used to get the username for display is Unix specific.
Therefore, on Windows when attempting to import `pwd` the error
"ModuleNotFoundError: No module named `pwd`" comes up and the program
terminates. Utilizing the `getpass` module will be portable.
@trevorbayless
Copy link
Author

@nickzuber Are you interested in merging this change? If not, I can delete the pull request!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ModuleNotFoundError: No module named 'pwd'
1 participant