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.

classification
Title: Fix for os.path.expanduser for Win2000
Type: Stage:
Components: None Versions: Python 2.3
process
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.

Files
File name Uploaded Description Edit
ntpath.py.patch 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 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.


msg41804 - (view) Author: Josiah Carlson (josiahcarlson) * (Python triager) Date: 2004-10-19 21:14
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.
msg41805 - (view) Author: Johannes Gijsbers (jlgijsbers) * (Python triager) Date: 2004-11-11 20:24
Logged In: YES 
user_id=469548

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