[PATCH] binman: Use expanduser instead of HOME

There may not be a HOME environment variable, so use the os.expanduser() function instead.
Signed-off-by: Simon Glass sjg@chromium.org ---
tools/binman/bintool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/binman/bintool.py b/tools/binman/bintool.py index 8fda13ff012..f460243e796 100644 --- a/tools/binman/bintool.py +++ b/tools/binman/bintool.py @@ -43,7 +43,7 @@ FETCH_NAMES = { # Status of tool fetching FETCHED, FAIL, PRESENT, STATUS_COUNT = range(4)
-DOWNLOAD_DESTDIR = os.path.join(os.getenv('HOME'), 'bin') +DOWNLOAD_DESTDIR = os.path.expanduser('~/bin')
class Bintool: """Tool which operates on binaries to help produce entry contents

There may not be a HOME environment variable, so use the os.expanduser() function instead.
Signed-off-by: Simon Glass sjg@chromium.org ---
tools/binman/bintool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to u-boot-dm, thanks!
participants (1)
-
Simon Glass