Improvement ?

Heiko Wundram heikowu at ceosg.de
Wed May 5 15:53:13 EDT 2004


Am Mittwoch, 5. Mai 2004 21:12 schrieb Jean-Marc Ranger:
> But is this the expected behavior ?  I personaly would prefer to see
> this operation succeed - and don't like the idea of writing a
> workaround :)

What you could do is pass the final directory name to os.path.abspath before 
you create it. abspath will filter out the unneccesary reference to "." 
before returning the name.

HTH!

Heiko.




More information about the Python-list mailing list