Re: Windows vs. Linux
On Tue, Aug 01, 2006 at 05:31:01PM +0200, Sybren Stuvel wrote:
OS/2 (and eComStation) also uses the backslash as the path separator.
On Tue, Aug 01, 2006 at 05:31:01PM +0200, Sybren Stuvel wrote:
James Stroud enlightened us with:
>
Ehm... replace that with "the latter with bonk on every OS except
Microsoft Windows". Windows is the weird one in OS-land, because they
are the only one that use the most widely used escape-character (the
backslash) as path separator.
its better to use:
os.path.join('m y', 'favorite', 'dir')
than
"\\".join(['my', 'favorite', 'dir'])
because the latter will bonk on linux.
os.path.join('m y', 'favorite', 'dir')
than
"\\".join(['my', 'favorite', 'dir'])
because the latter will bonk on linux.
Ehm... replace that with "the latter with bonk on every OS except
Microsoft Windows". Windows is the weird one in OS-land, because they
are the only one that use the most widely used escape-character (the
backslash) as path separator.
Comment