[Python-Dev] ntpath r54364 (was: PEP 370, open questions)

2008-01-17 Thread Paul Moore
On 17/01/2008, Tim Golden [EMAIL PROTECTED] wrote: Ummm... see my earlier point a few posts back which refers to r54364 which gave priority to USERPROFILE over HOMEDRIVE/HOMEPATH Sorry. I'd not realised this was a post-2.5 revision (ie, not in released code yet...) Looking at the change, it

Re: [Python-Dev] ntpath r54364

2008-01-17 Thread Tim Golden
Christian Heimes wrote: Paul Moore wrote: I'd recommend that this change be reverted. To correctly get another user's home directory would involve reading (via the registry, or maybe some utility function I couldn't find at a quick glance) the value of HOMEDRIVE/HOMEPATH which is set for the

Re: [Python-Dev] ntpath r54364 (was: PEP 370, open questions)

2008-01-17 Thread Christian Heimes
Paul Moore wrote: I'd recommend that this change be reverted. To correctly get another user's home directory would involve reading (via the registry, or maybe some utility function I couldn't find at a quick glance) the value of HOMEDRIVE/HOMEPATH which is set for the other user. (In fact,

Re: [Python-Dev] ntpath r54364

2008-01-17 Thread Christian Heimes
Tim Golden wrote: Frustratingly, I don't believe there's *any* canonical way to find ~user without actually going through the whole process of getting a token and impersonating them. If they've logged onto this machine already you can have a good go by following the code posted the other day