Re: Windows User path
Paul Moore <pf_moore-/[email protected]> Mon, 12 Apr 2004 18:07:55 +0100
| Newsgroups | gmane.comp.pythin.pyds.devel |
|---|---|
| Message-ID | <[email protected]> |
Rudy Schockaert <[email protected]> writes: > On windows 98: > > >>> import os > >>> os.path.expanduser('~/') > 'C:\\/' On Windows 98, having a username is optional. Without a username, C:\ is the best you can get. With a username, I'd expect (but can't check, as I don't have Win98 installed) a user-specific directory. BTW, this example shows that you'd be better using userdir = os.path.join(os.path.expanduser('~'), '.PyDS') [ie, use os.path.join, rather than an explicit '/' character] Paul. -- This signature intentionally left blank