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

Relative Path #1

Closed
uBadRequest opened this issue Oct 28, 2020 · 0 comments · Fixed by #2
Closed

Relative Path #1

uBadRequest opened this issue Oct 28, 2020 · 0 comments · Fixed by #2
Labels
bug Something isn't working

Comments

@uBadRequest
Copy link

with open(os.path.dirname(os.path.realpath(__file__)) + '/../db/params.json')

I know there is probably a better way of doing this but it works for me. Now I can run the script from other directories 👍

with open('./db/params.json') as f:

@s0md3v s0md3v added the bug Something isn't working label Nov 2, 2020
@s0md3v s0md3v closed this as completed in #2 Jan 21, 2021
s0md3v added a commit that referenced this issue Jan 21, 2021
Fix real path for parameters database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants