[Patches] [ python-Patches-643943 ] Fix for os.path.expanduser for Win2000

SourceForge.net noreply at sourceforge.net
Tue Oct 19 23:14:05 CEST 2004


Patches item #643943, was opened at 2002-11-25 20:25
Message generated for change (Comment added) made by josiahcarlson
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=643943&group_id=5470

Category: None
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Ralph Nichols (ralphn)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix for os.path.expanduser for Win2000

Initial Comment:
On windows 2000, environment varables are recursively
expanded, so   
the comand os.path.expanduser('~\test') will typically
yeld "%USERPROFILE%\test".  This patch to ntpath.py
will recursively expand the '%' quoted varables until
either of the following happen:
a) It hits an environment varable it has already seen
b) The environment variable is not part of the environment.




----------------------------------------------------------------------

Comment By: Josiah Carlson (josiahcarlson)
Date: 2004-10-19 14:14

Message:
Logged In: YES 
user_id=341410

There is a more complete os.path.expanduser patch for NT
based systems here: http://python.org/sf/957650

I would suggest closing this patch for two reasons:
1. The submitter did not provide test cases nor output.
2. The issues solved by this patch are subsumed by the patch
provided in the url above.

If the submitter can offer test cases and an updated patch
(against some reasonably current CVS), the submitter's patch
is still incomplete with regards to the equivalent posix
expanduser code, and I would suggest closing this patch.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=643943&group_id=5470


More information about the Patches mailing list