Hello Edward!

On Thursday 15 March 2007 03:53, Edward A Robinson wrote:
> I guess what Im looking for is a python command that dose what the
> file command in the shell would do

I don't think there is anything like this in Python's standard 
library. Probably Gnome has a library for identifying the file type 
(I've read that KDE has one). 
So you could ask on a Gnome mailing list for that library and use it.

Offcourse you could use the 'file' program and parse the output.

Regards, Eike.  

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to