This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Fix for os.path.expanduser for Win2000
Type: Stage:
Components: None Versions: Python 2.3
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: jlgijsbers, josiahcarlson, ralphn
Priority: normal Keywords: patch

Created on 2002-11-26 04:25 by ralphn, last changed 2022-04-10 16:05 by admin. This issue is now closed.

File name Uploaded Description Edit ralphn, 2002-11-26 04:25 Patch to iteratively expand environment variables
Messages (3)
msg41803 - (view) Author: Ralph Nichols (ralphn) Date: 2002-11-26 04:25
On windows 2000, environment varables are recursively
expanded, so   
the comand os.path.expanduser('~\\test') will typically
yeld "%USERPROFILE%\\test".  This patch to
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.

msg41804 - (view) Author: Josiah Carlson (josiahcarlson) * (Python triager) Date: 2004-10-19 21:14
Logged In: YES 

There is a more complete os.path.expanduser patch for NT
based systems here:

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.
msg41805 - (view) Author: Johannes Gijsbers (jlgijsbers) * (Python triager) Date: 2004-11-11 20:24
Logged In: YES 

Closing per last comment.
Date User Action Args
2022-04-10 16:05:56adminsetgithub: 37538
2002-11-26 04:25:23ralphncreate