Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is a typo in documentation? #10

Open
AliM1988 opened this issue Mar 1, 2024 · 1 comment
Open

Is a typo in documentation? #10

AliM1988 opened this issue Mar 1, 2024 · 1 comment

Comments

@AliM1988
Copy link

AliM1988 commented Mar 1, 2024

In https://www.freqtrade.io/en/2019.8/data-analysis/#change-directory-to-root I think there is a typo.

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().

@fniewijk
Copy link

I would suggest you create a Pull Request with the changes and assign it to the author of the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants