I need to get mime type for some files on windows, so i\'ve installed python-magic (on 32-bit python 2.7.3). It depends on unix magic library.<
python-magic
magic
For future google visitors: Another solution is setting the %MAGIC% enviroment variable in the systems setting to point to the magic file, for me it was:
"c:\Program Files (x86)\GnuWin32\share\misc\magic"
No need to hardcode the path in your program!