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

noreply@sourceforge.net noreply@sourceforge.net
Mon, 25 Nov 2002 20:25:23 -0800


Patches item #643943, was opened at 2002-11-25 22:25
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.




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

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