Path ... where is my application's home dir?

Yermat loic at yermat.net1.nerim.net
Wed Apr 28 15:38:57 EDT 2004


Peter Hansen a écrit :

> 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

Good point !

Browsing old messages from clp in google. It seems the only way to do 
this on win98 is to read it in the registry...

-- 
Yermat




More information about the Python-list mailing list