From e5a6fa588ae20ccfa1887fd7a1eb4e110612825e Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Sun, 10 Oct 2021 20:18:14 +0000 Subject: [PATCH] opts.py: avoid use of os.path.expanduser() - MSYS2 Python expands the tilde to $HOMEPATH instead of $HOME, rendering this function useless. --- mmgen/opts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmgen/opts.py b/mmgen/opts.py index eefd7926..747024c0 100755 --- a/mmgen/opts.py +++ b/mmgen/opts.py @@ -276,7 +276,7 @@ def init(opts_data=None,add_opts=None,init_opts=None,opt_filter=None,parse_only= finalized before setting data_dir """ if opt.data_dir: - g.data_dir_root = os.path.normpath(os.path.expanduser(opt.data_dir)) + g.data_dir_root = os.path.normpath(os.path.abspath(opt.data_dir)) elif os.getenv('MMGEN_TEST_SUITE'): from test.include.common import get_data_dir g.data_dir_root = get_data_dir()