Fwd: Windows User path
Georg Bauer <gb-BRhJDZTO+/[email protected]> Mon, 12 Apr 2004 16:30:15 +0200
| Newsgroups | gmane.comp.pythin.pyds.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi! And another one from Louis. Looks like at least Windows 2000 and XP are ok with this one. bye, Georg ==== snip ===== > Von: "Louis Feges" <[email protected]> > Datum: Mo, 12. Apr 2004 16:15:00 Europe/Berlin > An: "Georg Bauer" <gb-BRhJDZTO+/[email protected]> > Betreff: RE: [Pyds-dev] Windows User path > > Ok, for WIN2000 workstation/XP > >>>>> >>>>> 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('~/') > >>>>> Windows 2000 > <snip> >>>> import os >>>> os.path.expanduser('~/') > 'D:\\Documents and Settings\\Administrator.LAFBOOK.000/' >>>> > </snip> > >>>>> Windows XP > <snip> >>>> import os >>>> os.path.expanduser('~/') > 'C:\\Documents and Settings\\Louis/' >>>> > </snip> > > regards, > Louis > >