Harald Stürzebecher wrote:
There's something i'd call "code smell" (thanks to the XP programming gurus for coming up with that term) near
"filename = filename.replace('\\','/')".
IMHO, something like that shouldn't be done directly with a filename - there "should" be a function to do that sort of cleaning in a platform independant way. I have no idea which one that might be but i think there was something about that in the wxPython wiki.
There's a general Pythonic way to handle this kind of thing: os.sep is the separator character for the "current" platform, but it's generally better to compose and split paths using os.path.split() and os.path.join().
Don Dwiggins
Advanced Publishing Technology