PDA

View Full Version : Python and MIME-type recognition



Nonno Bassotto
November 1st, 2006, 04:37 PM
Is there some Python library which allows mime-type recognition of files? Something like the way Nautilus works: if you take an mp3 file and call it "foo.pdf" it still treats it as an mp3.

net-x
November 4th, 2006, 03:39 AM
python-xdg - A python library to access freedesktop.org standards

Nonno Bassotto
November 17th, 2006, 07:57 PM
Sorry for the late reply, I was quite busy. I've been unable to find python-xdg documentation. Could you please point me somewhere I can find it? Thank you