[Tutor] Working with files with python (gtk)

Eike Welk eike.welk at gmx.net
Thu Mar 15 12:24:35 CET 2007

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.  

More information about the Tutor mailing list