Re: [PATCH] binman: Use expanduser instead of HOME

2023-04-28 Thread Simon Glass
There may not be a HOME environment variable, so use the os.expanduser()
function instead.

Signed-off-by: Simon Glass 
---

 tools/binman/bintool.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to u-boot-dm, thanks!


[PATCH] binman: Use expanduser instead of HOME

2023-04-19 Thread Simon Glass
There may not be a HOME environment variable, so use the os.expanduser()
function instead.

Signed-off-by: Simon Glass 
---

 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
-- 
2.40.0.634.g4ca3ef3211-goog