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

Interpreter cannot find static local files #15

Open
Adinapunyo-Banerjee opened this issue Oct 15, 2022 · 1 comment
Open

Interpreter cannot find static local files #15

Adinapunyo-Banerjee opened this issue Oct 15, 2022 · 1 comment

Comments

@Adinapunyo-Banerjee
Copy link

On a fresh new clone of this repo:
DIR

Running Speed typing.py leaves me with the error:
issue

Fixing this leaves me again with:
issue2

This issue might be system centric.

@Adinapunyo-Banerjee
Copy link
Author

The most reliable way to inject files (stable in most systems) is using:
import os
open(os.path.join(sys.path[0], "file_name.txt"), "r")
That's what I am going to do.

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

1 participant