os.environ['HOME'] may not exists on Windows

Alexander Belchenko bialix at ukr.net
Mon Apr 11 14:59:02 BST 2005


Andrew Bennetts wrote:

> os.path.expanduser('~/.bzr.log') is a more portable way than
> os.path.join(os.environ['HOME'], '.bzr.log').

Yes. It works well and produce the same result on my machine.

-- 
Alexander




More information about the bazaar mailing list