aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass2023-04-19 15:21:14 -0600
committerSimon Glass2023-04-28 11:49:00 -0600
commitad827e15b22ad370b5e548c12f58efcedf657740 (patch)
tree85ac58bda845007817eb82800516b02c0f30a753 /tools
parentca031c082700631264d1e058f2f705438c2be8c2 (diff)
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/binman/cmdline.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/binman/cmdline.py b/tools/binman/cmdline.py
index 4b875a9dcda..9632ec115e5 100644
--- a/tools/binman/cmdline.py
+++ b/tools/binman/cmdline.py
@@ -95,7 +95,7 @@ controlled by a description in the board device tree.'''
parser.add_argument('-H', '--full-help', action='store_true',
default=False, help='Display the README file')
parser.add_argument('--tooldir', type=str,
- default=os.path.join(os.getenv('HOME'), '.binman-tools'),
+ default=os.path.join(os.path.expanduser('~/.binman-tools')),
help='Set the directory to store tools')
parser.add_argument('--toolpath', type=str, action='append',
help='Add a path to the list of directories containing tools')