Adam Hupp

Results 103 comments of Adam Hupp

Hah, I have no idea. The dll load path stuff is mysterious (i don't actually own a windows machine). If you find a good solution please submit it and I'll...

Or rather, find an answer. It's hard to imagine that the position in the path really effects this.

Does it find the lib if you put that path in /etc/ld.so.conf and re-run ldconfig? I don't understand your proposal. Libraries should not be handling command line args.

What is "link time" in this context though? In python we don't really have that distinction. I'm tempted to just define an env variable that people can defined to override...

For future reference, it looks like it's this: https://github.com/conda-forge/python-magic-feedstock

I'm not able to reproduce this: ``` >>> import magic >>> magic.Magic(uncompress=True, mime=True).from_file('test.docx') 'text/xml' >>> magic.Magic(uncompress=True, mime=True).from_buffer(open('test.docx').read(1024)) 'text/xml' ``` It wasn't clear if you meant from_buffer or from_file, the description...

And it only happens with from_buffer, not from_file.

It happens with the magic distributions python bindings as well. I've reported the bug to them: https://bugs.astron.com/view.php?id=125

I don't think it's quite related to #81, because MAGIC_MIME is mutually exclusive with the textual description afaik. This is definitely a reasonable thing to want to do but I'm...