s0md3v/Parth

Relative Path

uBadRequest opened this issue ยท 0 comments

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: