Skip to content

Commit

Permalink
Ensure user_home() is an absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Aug 1, 2023
1 parent 44a9d60 commit 2107981
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mx.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,8 @@ def _parse_cmd_line(self, opts, firstParse):

if opts.user_home is None or opts.user_home == '':
abort('Could not find user home. Use --user-home option or ensure HOME environment variable is set.')
if not isabs(opts.user_home):
abort('--user-home must be an absolute path')

if opts.primary and primary_suite():
opts.specific_suites.append(primary_suite().name)
Expand Down

0 comments on commit 2107981

Please sign in to comment.