More elegant way to cwd?
Georg Brandl
g.brandl at gmx.net
Tue Dec 28 10:19:23 EST 2004
More information about the Python-list mailing list
Tue Dec 28 10:19:23 EST 2004
- Previous message (by thread): More elegant way to cwd?
- Next message (by thread): More elegant way to cwd?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
M.E.Farmer wrote: > Peter Hansen wrote: > [snip] >> Other than using os.pardir instead of '..', and possibly adding >> an "os.path.abspath()" call to the last bit (or does realpath >> already do that? It's unclear from the docs) > [snip] > I believe os.path.abspath and os.path.realpath are the same. > realpath is just an alias for abspath. Yes, on Windows. On UNIX systems, realpath resolves symbolic links while abspath doesn't. mfg Georg
- Previous message (by thread): More elegant way to cwd?
- Next message (by thread): More elegant way to cwd?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list