import os
from pathlib import Path
# Change directory
# Modify this cell to insure that the output shows the correct path.
# Define all paths relative to the project root shown in the cell output
project_root = "somedir/freqtrade"
i=0
try:
os.chdirdir(project_root)
assert Path('LICENSE').is_file()
except:
while i<4 and (not Path('LICENSE').is_file()):
os.chdir(Path(Path.cwd(), '../'))
i+=1
project_root = Path.cwd()
print(Path.cwd())
There's a typo in the line (os.chdirdir should be os.chdir). It's likely meant to change the directory using os.chdir().
In https://www.freqtrade.io/en/2019.8/data-analysis/#change-directory-to-root I think there is a typo.
There's a typo in the line (os.chdirdir should be os.chdir). It's likely meant to change the directory using os.chdir().