FW: Windows 2000 and os.path.expanduser
"Bauer, Georg" <[email protected]> Tue, 13 Apr 2004 11:34:14 +0200
| Newsgroups | gmane.comp.pythin.pyds.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi!
I am logged in as Administrator, when testing this:
ActivePython 2.3.2 Build 232 (ActiveState Corp.) based on
Python 2.3.2 (#49, Nov 13 2003, 10:34:54) [MSC v.1200 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.expanduser("~")
'C:\\'
>>>
Doesn't look that good - that was the reason why I actually
played with USERPROFILE in the first place. This machine somehow
doesn't have HOMEDRIVE and HOMEPATH variables set. Don't ask
me why, I can just deliver what I see, not why it's as it is
with Windows ;-)
bye, Georg