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
Incompatibility with windows: module 'os' has no attribute 'EX_NOINPUT' #48
Comments
Thanks for the report @stefanjcollier! I'm not very familiar with Windows -- do you happen to know what would be the 'right' values to return here on that platform? Does Windows even have a notion of exit codes? |
I'm honestly not sure myself, however I'm just about to do a PR that will mimic the UNIX ones (but not use the missing attributes). If a wiser person comes along they can point it out. 😄 |
Yup, I think it'd be totally fine to define some constants like: EX_OK = 0
EX_DATAERR = 65
EX_NOINPUT = 66
EX_UNAVAILABLE = 69 And use those instead. Thanks! |
I thought it would be best to keep the os.EX_* attributes. Just in case they are different for non obvious systems like Red Hat or other UNIX distros. |
Check it out for yourself: |
This is fixed in v 0.0.20. |
Hi there,
I'm trying to run this on windows and get this error on the commands:
vladiate
vladiate vlads
vladiate mymain.py
This seems to all stem from:
https://github.com/di/vladiate/blob/master/vladiate/main.py:main()
All the
os.EX_*
values are UNIX only.Would you be able to change this to a more windows-friendly return value?
The text was updated successfully, but these errors were encountered: