Re: Getting the home directory in Python and a bug in os.path.expanduser

2007-07-07 Thread Edward Diener
Neil Hodgson wrote: > Edward Diener: > >> Probably most reliable on Windows is a Windows API function, if it >> exists, for getting the home directory, as opposed to using >> environment variables, but I can not find any Windows API for it at >> present. > >Look at SHGetFolderPath(CSIDL_PR

Re: Getting the home directory in Python and a bug in os.path.expanduser

2007-07-07 Thread Neil Hodgson
Edward Diener: > Probably most reliable on Windows is a Windows API function, if it > exists, for getting the home directory, as opposed to using environment > variables, but I can not find any Windows API for it at present. Look at SHGetFolderPath(CSIDL_PROFILE, ...) for Windows Me/2000 or

Re: Getting the home directory in Python and a bug in os.path.expanduser

2007-07-07 Thread Grant Edwards
On 2007-07-07, Edward Diener <[EMAIL PROTECTED]> wrote: > Thank you for responding. I hope Python will fix this problem. Python: the language that fixes itself! -- Grant Edwards grante Yow! I'm a GENIUS! I want at to

Re: Getting the home directory in Python and a bug in os.path.expanduser

2007-07-07 Thread Edward Diener
Josiah Carlson wrote: > Edward Diener wrote: >> What is the generic operating system way of getting the home directory ? >> >> I am guessing it is os.path.expanduser("~"). Is there a better way or >> an alternate way ? >> >> If it is as I surmise, the aforementioned expanduser("~") of os.path >>

Re: Getting the home directory in Python and a bug in os.path.expanduser

2007-07-07 Thread Josiah Carlson
Edward Diener wrote: > What is the generic operating system way of getting the home directory ? > > I am guessing it is os.path.expanduser("~"). Is there a better way or an > alternate way ? > > If it is as I surmise, the aforementioned expanduser("~") of os.path > seems incorrect to me under W

Getting the home directory in Python and a bug in os.path.expanduser

2007-07-06 Thread Edward Diener
What is the generic operating system way of getting the home directory ? I am guessing it is os.path.expanduser("~"). Is there a better way or an alternate way ? If it is as I surmise, the aforementioned expanduser("~") of os.path seems incorrect to me under Windows. The document says: "On Win