[ python-Bugs-1707768 ] os.path.normpath changes path (chops of trailing slash)

2007-05-01 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.5 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Robert Siemer (siemer) Assigned to: Nobody/Anonymous (nobody) Summary: os.path.normpath changes

[ python-Bugs-1707768 ] os.path.normpath changes path (chops of trailing slash)

2007-04-25 Thread SourceForge.net
: os.path.normpath changes path (chops of trailing slash) Initial Comment: Hello everybody! os.path.normpath('/etc/passwd') '/etc/passwd' I don't know any environment at all where a) '/etc/passwd/' b) '/etc/passwd' are treated the same. It clearly does not apply for the path part of http urls (this is left

[ python-Bugs-1707768 ] os.path.normpath changes path (chops of trailing slash)

2007-04-25 Thread SourceForge.net
, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.5 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Robert Siemer (siemer) Assigned to: Nobody/Anonymous (nobody) Summary: os.path.normpath changes path

os.path.normpath

2006-08-18 Thread placid
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 -- http://mail.python.org/mailman/listinfo/python-list

Re: os.path.normpath

2006-08-18 Thread placid
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 normpath

Re: os.path.normpath

2006-08-16 Thread Hari Sekhon
[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 an

Re: os.path.normpath

2006-08-16 Thread Graham Dumpleton
os.path.normpath to act like we are an a unix style box? Use posixpath.normpath() instead. I can't seem to find posixpath in the docs, but I can import posixpath and a dir shows it does indeed have a normpath. Quoting: http://www.python.org/doc/2.3.5/lib/node750.html

os.path.normpath

2006-08-09 Thread nathanbullock
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 style box? What about in the new python

Re: os.path.normpath

2006-08-09 Thread BartlebyScrivener
[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

Re: os.path.normpath

2006-08-09 Thread Gabriel Genellina
string. Or use the urlparse module. Is there any way to tell os.path.normpath to act like we are an a unix style box? The fact than '/' is used as a path separator both on unix and on HTTP URLs should be considered as a mere coincidence (in fact it isn't...) URLs dont necesarily point to a real

Re: os.path.normpath

2006-08-09 Thread grahamd
[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 style box

[ python-Bugs-636648 ] os.path.normpath leading '//'

2005-09-28 Thread SourceForge.net
, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.2.1 Status: Closed Resolution: Invalid Priority: 5 Submitted By: Nicholas Jones (carpaski) Assigned to: Neal Norwitz (nnorwitz) Summary: os.path.normpath leading '//' Initial

[ python-Bugs-636648 ] os.path.normpath leading '//'

2005-09-28 Thread SourceForge.net
, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.2.1 Status: Closed Resolution: Invalid Priority: 5 Submitted By: Nicholas Jones (carpaski) Assigned to: Neal Norwitz (nnorwitz) Summary: os.path.normpath leading

[ python-Bugs-665336 ] win32 os.path.normpath not correct for leading slash cases

2005-07-19 Thread SourceForge.net
, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Stephan R.A. Deibel (sdeibel) Assigned to: Nobody/Anonymous (nobody) Summary: win32 os.path.normpath not correct

[ python-Bugs-665336 ] win32 os.path.normpath not correct for leading slash cases

2005-07-19 Thread SourceForge.net
, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Stephan R.A. Deibel (sdeibel) Assigned to: Nobody/Anonymous (nobody) Summary: win32 os.path.normpath not correct

<    1   2