Use user_data_dir for hyperopt

This commit is contained in:
Matthias
2019-07-28 15:02:11 +02:00
parent a3c605f147
commit 14b43b504b
2 changed files with 13 additions and 8 deletions

View File

@@ -33,13 +33,14 @@ class PairListResolver(IResolver):
"""
Search and loads the specified pairlist.
:param pairlist_name: name of the module to import
:param config: configuration dictionary
:param extra_dir: additional directory to search for the given pairlist
:return: PairList instance or None
"""
current_path = Path(__file__).parent.parent.joinpath('pairlist').resolve()
abs_paths = [
config['user_data_dir'].joinpath('user_data/pairlist'),
config['user_data_dir'].joinpath('pairlist'),
current_path,
]