Re: Windows User path
Rudy Schockaert <[email protected]> Mon, 12 Apr 2004 18:52:47 +0200
| Newsgroups | gmane.comp.pythin.pyds.devel |
|---|---|
| Message-ID | <[email protected]> |
On windows 98:
>>> import os
>>> os.path.expanduser('~/')
'C:\\/'
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
>
> (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