HomeSoftware Heritage

Don't look up "HOME" environment variable unconditionally to avoid KeyError

Description

Don't look up "HOME" environment variable unconditionally to avoid KeyError
if it's not defined, like on Windows which usually doesn't have "HOME", but
"HOMEDRIVE" and "HOMEPATH" instead.

Details

Provenance
Risto Kankkunen <risto.kankkunen@iki.fi>Authored on Feb 7 2012, 9:08 PM
ardumontPushed on Sep 27 2021, 5:34 PM
Parents
rPPDW45d211f79d25: $HOME is now explicitly specified for tests that use it to read
Branches
Unknown
Tags
Unknown

Event Timeline