From: Simon Glass Date: Fri, 10 Feb 2023 20:59:46 +0000 (-0700) Subject: binman: Avoid requiring a home directory on startup X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20%28.OutputFormats.Get?a=commitdiff_plain;h=139c464c2ac5027b200ef9b4a66024a9daa39969;p=u-boot.git binman: Avoid requiring a home directory on startup This is needed to download tools, but we may not need to do this. At present binman fails to start if HOME is not set. Use the current directory as a default to avoid this. Signed-off-by: Simon Glass --- diff --git a/tools/binman/bintool.py b/tools/binman/bintool.py index 8fda13ff01..f460243e79 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