title: Missing files for `magic` library on Windows
body: <p>I need to get mime type for some files on windows, so i've installed <code>python-magic</code> (on 32-bit python 2.7.3).<br>
  It depends on unix <code>magic</code> library.<br>
  Author instructs to get <code>regex2.dll</code>, <code>zlib1.dll</code> and <code>magic1.dll</code> from gnuwin32 project.
  So i saved the files to a folder and added the folder to my system <code>PATH</code>.<br>
  Now when i execute <code>magic</code> methods, i get missing file exception:  </p>
  
  <pre><code>import magic
  print(magic.Magic())
  
  Traceback (most recent call last):
  File "C:/Users/Admin/PycharmProjects/lex/lex.py", line 367, in &lt;module&gt;
    test_magic()
  File "C:/Users/Admin/PycharmProjects/lex/lex.py", line 364, in test_magic
    print(magic.Magic())
  File "C:\Python27\lib\site-packages\python_magic-0.4.3-py2.7.egg\magic.py", line 52, in __init__
    magic_load(self.cookie, magic_file)
  File "C:\Python27\lib\site-packages\python_magic-0.4.3-py2.7.egg\magic.py", line 188, in magic_load
    return _magic_load(cookie, coerce_filename(filename))
  File "C:\Python27\lib\site-packages\python_magic-0.4.3-py2.7.egg\magic.py", line 139, in errorcheck
    raise MagicException(err)
  magic.MagicException: could not find any magic files!
  </code></pre>
  
  <p>DLLs are in the PATH, i tried debugging and <code>magic1.dll</code> is located correctly, but somewhere inside library throws an exception.<br>
  Inside the <code>gnuwin32</code> package i've found <code>magic</code> and <code>magic.mgc</code>. I placed them to the same folder, and got <code>WindowsError: [Error 126]</code> on  </p>
  
  <pre><code>libmagic = None  
  # Let's try to find magic or magic1  
  dll = ctypes.util.find_library('magic') or ctypes.util.find_library('magic1')  
  
  # This is necessary because find_library returns None if it doesn't find the library
  if dll:
      libmagic = ctypes.CDLL(dll)
  </code></pre>
  
  <p>This obviously happens because python tries to open <code>magic</code> file as dll, which is plain text. After adding <code>.dll</code> to filenames in the code i get the same <code>magic.MagicException: could not find any magic files!</code>.<br>
  What files am i missing?  </p>
  
  <p><strong>UPDATE:</strong>  </p>
  
  <pre><code>C:\Users\Admin&gt;file C:\123.zip -m magic
  file: could not find any magic files!
  
  C:\Users\Admin&gt;file C:\123.zip -m "C:\@DEV\@LIB\@Magic\GetGnuWin32\bin\magic"
  C:\123.zip; ASCII text, with no line terminators
  
  C:\Users\Admin&gt;cd C:\@DEV\@LIB\@Magic\GetGnuWin32\bin
  
  C:\@DEV\@LIB\@Magic\GetGnuWin32\bin&gt;file C:\123.zip -m magic
  C:\123.zip; ASCII text, with no line terminators
  </code></pre>
  
  <p><strong>UPDATE 2 (SOLVED):</strong>  </p>
  
  <pre><code>print(magic.Magic())
  magic.MagicException: could not find any magic files!
  
  print(magic.Magic(magic_file = 'magic'))
  &lt;magic.Magic instance at 0x02A5E198&gt;
  </code></pre>
  
  <p>just had to specify file explicitly</p>