Fixed 'ImportError: failed to find libmagic. Check your installation' when using cygwin's python #68
Fixed 'ImportError: failed to find libmagic. Check your installation…
a1c1e5ca
ahupp
merged
3664686d
into master 10 years ago
Assignees
No one assigned
When using cygwin, and python distribution, that comes with it,
sys.platform
is equal to "cygwin", rather than "win32".So I made this value be treated the same in magic.py
Test Plan:
$ /bin/python
>>> import magic
>>> # Ensure no error message displayed
>>> exit()