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
: 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
,
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
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
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
[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
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
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
[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
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
[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
,
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
,
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
,
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
,
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
101 - 115 of 115 matches
Mail list logo