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

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

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,