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

/dev/null doesn't exist on Windows but os.devnull does #1

Open
shrewmouse1 opened this issue Nov 27, 2017 · 1 comment · May be fixed by #5
Open

/dev/null doesn't exist on Windows but os.devnull does #1

shrewmouse1 opened this issue Nov 27, 2017 · 1 comment · May be fixed by #5

Comments

@shrewmouse1
Copy link

In versioninforeader.py change line 42 from

with open('/dev/null', 'w') as devnull:

with open(os.devnull, 'w') as devnull:

DeeFuse added a commit to DeeFuse/gitversion that referenced this issue Feb 12, 2019
@DeeFuse DeeFuse linked a pull request Feb 12, 2019 that will close this issue
@Roman-Bober
Copy link

same with me during pip install:

line 42, in _total_number_of_commits_in_cwd
with open('/dev/null', 'w') as devnull:
FileNotFoundError: [Errno 2] No such file or directory: '/dev/null'

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 a pull request may close this issue.

2 participants