Issue643943
Created on 2002-11-26 04:25 by ralphn, last changed 2004-11-11 20:24 by jlgijsbers.
| File name |
Uploaded |
Description |
Edit |
Remove |
|
ntpath.py.patch
|
ralphn,
2002-11-26 04:25
|
Patch to iteratively expand environment variables |
|
|
|
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) |
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) |
Date: 2004-11-11 20:24 |
|
Logged In: YES
user_id=469548
Closing per last comment.
|
|
| Date |
User |
Action |
Args |
| 2002-11-26 04:25:23 | ralphn | create | |
|