Bart wrote:
> I'm using this and ran across backslash issues in one of my paths.
>
> archpath = os.path.normpath('E:\foo\FTP\HLS\archive')
>
> was translating to:
>
> E:\lsfprod\law\uch_interfaces\FTP\HLSrchive
>
> which caused me to start using the 'raw' declaration before the path
Bart wrote:
> I'm using this and ran across backslash issues in one of my paths.
>
> archpath = os.path.normpath('E:\foo\FTP\HLS\archive')
>
> was translating to:
>
> E:\lsfprod\law\uch_interfaces\FTP\HLSrchive
>
> which caused me to start using the 'raw' declaration before the path
On 14 Giu, 22:35, Michael Hoffman <[EMAIL PROTECTED]> wrote:
> Intentional.
>
> http://en.wikipedia.org/wiki/Path_(computing)#Universal_Naming_Conven...
> --
> Michael Hoffman
Got it.
Thank you.
--
http://mail.python.org/mailman/listinfo/python-list
billiejoex wrote:
> Hi there,
> I've noticed that os.path.normpath does not collapse redundant
> separators if they're located at the beginning of the string:
>
print os.path.normpath('/a//b//c')
> \a\b\c
print os.path.normpath('//a//b//c')
> \\a\b\c
>
> Is it intentional or is it a bug
placid wrote:
> Hi all,
>
> I was just wondering if there is a anti-os.path.normpath function? For
> example if i have the path "C:\Program Files\Games" i want to
> anti-os.path.normpath is so that it becomes "C:\\Program Files\\Games"
> ?
>
> Cheers
Ahh ignore my post. I was using abspath, and n
Hari Sekhon wrote ..
> [EMAIL PROTECTED] wrote:
> > [EMAIL PROTECTED] wrote:
> >
> >> I am using a windows box and passing a string like "../foo/../foo2"
> to
> >> normpath which then returns "..\\foo2". But if this string is going
> >> into a webpage link it should really be "../foo".
> >>
> >>
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
I am using a windows box and passing a string like "../foo/../foo2" to
normpath which then returns "..\\foo2". But if this string is going
into a webpage link it should really be "../foo".
Is there any way to tell os.path.normpath
[EMAIL PROTECTED] wrote:
> I am using a windows box and passing a string like "../foo/../foo2" to
> normpath which then returns "..\\foo2". But if this string is going
> into a webpage link it should really be "../foo".
>
> Is there any way to tell os.path.normpath to act like we are an a unix
> s
At Wednesday 9/8/2006 15:45, [EMAIL PROTECTED] wrote:
I am using a windows box and passing a string like "../foo/../foo2" to
normpath which then returns "..\\foo2". But if this string is going
into a webpage link it should really be "../foo".
You could just .replace('\\','/') on the resulting
[EMAIL PROTECTED] wrote:
> But if this string is going into a webpage link
http://docs.python.org/lib/module-urlparse.html
rd
--
http://mail.python.org/mailman/listinfo/python-list
10 matches
Mail list logo