[issue244] os.path.expanuser('~') does not work on win98

Volker Kleinfeld mercurial-bugs at selenic.com
Sun May 14 12:03:38 CDT 2006


New submission from Volker Kleinfeld <Volker.Kleinfeld at gmx.de>:

On win98 the os.path.expanuser('~') does not result in
a useable directory. The MSDN recommendation for user specific
directories is the use of shell.ShGetSpecialFolder.
For details see: 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shgetspecialfolderpath.asp

I attached a patch which tries to be compatible with current location of
mercurial.ini: the parent dir of C:\Documents and Settings\<user>\Application
Data is used.

/Volker

----------
files: user_path.patch
messages: 1267
nosy: vadim, vok
priority: bug
status: unread
title: os.path.expanuser('~') does not work on win98
topic: windows

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue244>
____________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: user_path.patch
Type: application/octet-stream
Size: 2088 bytes
Desc: not available
Url : http://www.selenic.com/pipermail/mercurial/attachments/20060514/04dd9049/user_path.obj


More information about the Mercurial mailing list