Re: how to resolve Windows pathnames into cygwin ones

2008-01-18 Thread [EMAIL PROTECTED]
Well yes, I was hoping for a library function, but none provides it. Thanks for the code. Works nicely. On Jan 18, 12:12 pm, apatheticagnostic <[EMAIL PROTECTED]> wrote: > Here we go then (are forward slashes valid in a filename in windows?) > def path_into_cygpath(path): > drive, destination

RE: how to resolve Windows pathnames into cygwin ones

2008-01-18 Thread Reedick, Andrew
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] > Sent: Friday, January 18, 2008 11:11 AM > To: python-list@python.org > Subject: how to resolve Windows pathnames into cygwin ones > > I am looking f

Re: how to resolve Windows pathnames into cygwin ones

2008-01-18 Thread apatheticagnostic
On Jan 18, 11:48 am, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2008-01-18, apatheticagnostic <[EMAIL PROTECTED]> wrote: > > > > > On Jan 18, 11:10 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > >> I am looking for a function to resolve 'F:/foo/bar' into '/cygdrive/f/ > >> foo/bar'. I get

Re: how to resolve Windows pathnames into cygwin ones

2008-01-18 Thread Grant Edwards
On 2008-01-18, apatheticagnostic <[EMAIL PROTECTED]> wrote: > On Jan 18, 11:10 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >> I am looking for a function to resolve 'F:/foo/bar' into '/cygdrive/f/ >> foo/bar'. I get the original dirpath from tkFileDialog.askdirectory in >> a Windows form and

Re: how to resolve Windows pathnames into cygwin ones

2008-01-18 Thread apatheticagnostic
On Jan 18, 11:10 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I am looking for a function to resolve 'F:/foo/bar' into '/cygdrive/f/ > foo/bar'. I get the original dirpath from tkFileDialog.askdirectory in > a Windows form and none of os.path.* functions seem to resolve it to a > cygwin for

Re: how to resolve Windows pathnames into cygwin ones

2008-01-18 Thread Gerhard Häring
[EMAIL PROTECTED] wrote: > I am looking for a function to resolve 'F:/foo/bar' into '/cygdrive/f/ > foo/bar'. I get the original dirpath from tkFileDialog.askdirectory in > a Windows form and none of os.path.* functions seem to resolve it to a > cygwin form. Rather they _append_ it to the current d

how to resolve Windows pathnames into cygwin ones

2008-01-18 Thread [EMAIL PROTECTED]
I am looking for a function to resolve 'F:/foo/bar' into '/cygdrive/f/ foo/bar'. I get the original dirpath from tkFileDialog.askdirectory in a Windows form and none of os.path.* functions seem to resolve it to a cygwin form. Rather they _append_ it to the current directory, resulting at best in a