[Tutor] Move all files to top-level directory

Sander Sweers sander.sweers at gmail.com
Mon Apr 12 23:27:15 CEST 2010


On 12 April 2010 22:13, Dave Angel <davea at ieee.org> wrote:
> When combining directory paths, it's generally safer to use
>
> os.path.join()

As KDE/Dolphin runs on windows this is even more important as it will
sort out the directory separator (/ vs \) for you.

Some added reading on os.path can be found on Doug's excellent PyMOTW
[1]. Also check out the glob module [2].

Greets
Sander

[1] http://blog.doughellmann.com/2008/01/pymotw-ospath.html
[2] http://blog.doughellmann.com/2007/07/pymotw-glob.html


More information about the Tutor mailing list