create-userdir should create the notebooks folder, too

This commit is contained in:
Matthias
2019-11-01 13:55:26 +01:00
parent 471bd4d889
commit 19b1a6c638
2 changed files with 3 additions and 2 deletions

View File

@@ -33,7 +33,8 @@ def create_userdata_dir(directory: str, create_dir=False) -> Path:
:param create_dir: Create directory if it does not exist.
:return: Path object containing the directory
"""
sub_dirs = ["backtest_results", "data", "hyperopts", "hyperopt_results", "plot", "strategies", ]
sub_dirs = ["backtest_results", "data", "hyperopts", "hyperopt_results", "notebooks",
"plot", "strategies", ]
folder = Path(directory)
if not folder.is_dir():
if create_dir: