Accessing file meta-data within Python/wxPython?

I think there's not only one portable way to accomplish this ... on windows platforms, default icons for file types associations are stored on the system registry (except for executables where the icon is in the exe resources) and on linux platforms it depends on the desktop environment, each one has its own standards ... so I don't think there's an "universal" way to do that.

That's okay. I don't need a universal way, and I realize that some OSes may not even have a notion of a "file icon". So, what I am getting from your answer is that I should research how to get file icon from system registry on Windows (except for .

Exe and others? ) - and, if I get this working, then I can turn my attention to other platforms. Thanks!

– westsider Jun 22 at 0:59.

This example should get you started for finding file icons in windows: from _winreg import * extension = '. Html' reg = OpenKey(HKEY_CLASSES_ROOT, extension) (value, vtype) = QueryValueEx(reg, None) print "file type is:", value reg = OpenKey(HKEY_CLASSES_ROOT, value + '\DefaultIcon') (value, vtype) = QueryValueEx(reg, None) print value, vtype %ProgramFiles%\Internet Explorer\iexplore. Exe,-17 2 ...at least that's what it is on my system.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions