Fwd: Windows User path

Georg Bauer <gb-BRhJDZTO+/[email protected]> Mon, 12 Apr 2004 13:43:20 +0200
Newsgroups gmane.comp.pythin.pyds.devel
Message-ID <[email protected]>
Hi!

Rudy provided two samples. I think the first one would be for Windows 
2000?

bye, Georg

====== snip ========
> Von: Rudy Schockaert <[email protected]>
> Datum: Mo, 12. Apr 2004  13:38:33 Europe/Berlin
> An: Georg Bauer <gb-BRhJDZTO+/[email protected]>
> Betreff: Re: [Pyds-dev] Windows User path
>
> Georg Bauer wrote:
>
>> Hi!
>>
>>> Is this different from os.path.expanduser?  ntpath.py's expanduser()
>>> seems to contain the logic that people have been talking about here 
>>> ...
>>
>>
>> Ah, didn't remember that function. Sure, os.path.expanduser('~/') 
>> _should_ give a correct path, but I never tried that with Windows. 
>> Can somebody with different Windows versions please post what is 
>> returned by
>>
>> os.path.expanduser('~/')
>>
>> under at least the following systems:
>>
>> Windows 9x
>> Windows ME
>> Windows NT
>> Windows 2000
>> Windows XP
>
> >>> import os
> >>> os.path.expanduser('~/')
> 'C:\\Documents and Settings\\Schockaert/'
> >>>
>
> Windows 2003 Server
>
> >>> import os
> >>> os.path.expanduser('~/')
> 'C:\\Documents and Settings\\Administrator/'
> >>>
>
>> (although I hope the last three behave mostly identically)
>>
>> bye, Georg
>>
>>
>>
>> _______________________________________________
>> Pyds-dev mailing list
>> Pyds-dev-iYtK5bfT9M//Ad8WF/[email protected]
>> http://www.westfalen.de/cgi-bin/mailman/listinfo/pyds-dev
>>
>>
>>
>
> -- 
>
> "If A is success, then A=x+y+z. Work is x, y is play and z is keeping 
> your mouth shut." - Albert Einstein
>
>