Module python-magic on/for Windows?

Michael Torrie torriem at gmail.com
Mon May 12 08:48:12 EDT 2008


Michael Torrie wrote:
> In this case I'd try making a folder in the Python25 folder called
> "share" and put the contents of the gnuwin32 share/file stuff in there.
>  Should look something like this:
> 
> c:/python25/share/file/magic.mime.mgc
> c:/python25/share/file/magic
> c:/python25/share/file/magic.mgc
> c:/python25/share/file/magic.mime

I used linux's strace command to trace the file calls of file.exe via
wine (fun!) and verified that magic1.dll indeed will first in
c:/progra~1/File/share/file/magic and then in ../share/file



More information about the Python-list mailing list