Browse Source

opts.py: avoid use of os.path.expanduser()

- MSYS2 Python expands the tilde to $HOMEPATH instead of $HOME, rendering this
  function useless.
The MMGen Project 3 years ago
parent
commit
e5a6fa588a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mmgen/opts.py

+ 1 - 1
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()