python-magic
Fixed 'ImportError: failed to find libmagic. Check your installation' when using cygwin's python
#68
Merged

Fixed 'ImportError: failed to find libmagic. Check your installation' when using cygwin's python #68

ahupp merged 1 commit into ahupp:master from EugeneSusla:master
EugeneSusla
EugeneSusla10 years ago

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()

EugeneSusla Fixed 'ImportError: failed to find libmagic. Check your installation…
a1c1e5ca
ahupp ahupp merged 3664686d into master 10 years ago
ahupp
ahupp10 years ago

Funny, I work with a guy who has the same name :)

Login to write a write a comment.

Login via GitHub

Reviewers
No reviews
Assignees
No one assigned
Labels
Milestone