Links: PYTHON - PROGRAMMING
Rel: python standard library
Ref:
Tags: #public


import pathlib
from pathlib import Path

module relative path

module_fp = Path(__file__).parent
settings = module_fp / 'settings.json'

with settings.open() as sf:
    print(sf.read())