Re: windows / unix path

2008-10-23 Thread Tim Roberts
greg <[EMAIL PROTECTED]> wrote: > >Dennis Lee Bieber wrote: >> The command line is the only place the slash direction has any >> effect any way... Avoid os.system(), subprocess with shell = True, and >> forward is safe in any position. > >I'm not sure that's quite true. On Windows, it's not the >sh

Re: windows / unix path

2008-10-21 Thread greg
Dennis Lee Bieber wrote: The command line is the only place the slash direction has any effect any way... Avoid os.system(), subprocess with shell = True, and forward is safe in any position. I'm not sure that's quite true. On Windows, it's not the shell that splits up the command line into arg

Re: windows / unix path

2008-10-20 Thread MRAB
On Oct 20, 4:47 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > Marcin201 wrote: > > Is there an built-in functionality in python to convert Windows paths > > to Unix paths?  I am running into problems when creating data files on > > Windows and the running them on a Unix platform.  I create paths usi

Re: windows / unix path

2008-10-20 Thread Larry Bates
Marcin201 wrote: Is there an built-in functionality in python to convert Windows paths to Unix paths? I am running into problems when creating data files on Windows and the running them on a Unix platform. I create paths using os.path.join. os.path.join('Pictures', '01.jpg') returns 'Pictures\

Re: windows / unix path

2008-10-18 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Marcin201 wrote: > os.path.join('Pictures', '01.jpg') returns 'Pictures\\01..jpg' on > Win. When I read files created on Win under Unix this is a problem, > python cannot open 'Pictures\\01.jpg' But it can on Windows, right? os.path contains functions specific to

Re: windows / unix path

2008-10-18 Thread John Machin
On Oct 19, 6:00 am, Marcin201 <[EMAIL PROTECTED]> wrote: > Is there an built-in functionality in python to convert Windows paths > to Unix paths?  I am running into problems when creating data files on > Windows and the running them on a Unix platform.  I create paths using > os.path.join. > > os.p

windows / unix path

2008-10-18 Thread Marcin201
Is there an built-in functionality in python to convert Windows paths to Unix paths? I am running into problems when creating data files on Windows and the running them on a Unix platform. I create paths using os.path.join. os.path.join('Pictures', '01.jpg') returns 'Pictures\\01..jpg' on Win.