PairListResovler to use user_data_dir
This commit is contained in:
parent
333413d298
commit
a3c605f147
@ -25,11 +25,11 @@ class PairListResolver(IResolver):
|
|||||||
Load the custom class from config parameter
|
Load the custom class from config parameter
|
||||||
:param config: configuration dictionary or None
|
:param config: configuration dictionary or None
|
||||||
"""
|
"""
|
||||||
self.pairlist = self._load_pairlist(pairlist_name, kwargs={'freqtrade': freqtrade,
|
self.pairlist = self._load_pairlist(pairlist_name, config, kwargs={'freqtrade': freqtrade,
|
||||||
'config': config})
|
'config': config})
|
||||||
|
|
||||||
def _load_pairlist(
|
def _load_pairlist(
|
||||||
self, pairlist_name: str, kwargs: dict) -> IPairList:
|
self, pairlist_name: str, config: dict, kwargs: dict) -> IPairList:
|
||||||
"""
|
"""
|
||||||
Search and loads the specified pairlist.
|
Search and loads the specified pairlist.
|
||||||
:param pairlist_name: name of the module to import
|
:param pairlist_name: name of the module to import
|
||||||
@ -39,7 +39,7 @@ class PairListResolver(IResolver):
|
|||||||
current_path = Path(__file__).parent.parent.joinpath('pairlist').resolve()
|
current_path = Path(__file__).parent.parent.joinpath('pairlist').resolve()
|
||||||
|
|
||||||
abs_paths = [
|
abs_paths = [
|
||||||
Path.cwd().joinpath('user_data/pairlist'),
|
config['user_data_dir'].joinpath('user_data/pairlist'),
|
||||||
current_path,
|
current_path,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user