Path ... where is my application's home dir?
Peter Hansen
peter at engcorp.com
Wed Apr 28 15:24:02 EDT 2004
Yermat wrote:
> Duncan Booth a écrit :
> And for the user dir, you can do (at least on Win2000, not try elsewhere) :
> os.getenv('HOMEDRIVE') + os.getenv('HOMEPATH')
Also works on WinXP. (And the last statistic I saw showed Win98
users at something like 2% of the Windows-using population,
so perhaps we can almost forget about it... ?)
-Peter
More information about the Python-list
mailing list