os module - reliable?

Carel Fellinger cfelling at iae.nl
Sun Dec 31 08:23:20 EST 2000


curtissol at my-deja.com wrote:

> if __name__ == "__main__":
>     ShowDirContents(os.getcwd()+"\Doc")

better to use:

    ShowDirContents(os.path.join(os.getcwd(), "Doc"))

as explained just the other day in the thread with the title:

    Newbie question ... reading modules from directories in Windows
-- 
groetjes, carel



More information about the Python-list mailing list