import os
import json


def parse_json_file(path, *path_children):
    if not os.path.isabs(path):
        cur_dir = os.getcwd()
        path = os.path.join(cur_dir, path)

    if path_children:
        path = os.path.join(path, *path_children)

    with open(path, encoding="UTF-8") as db_config_file:
        return json.load(db_config_file)

import os
import json


def parse_json_file(path, *path_children):
    if not os.path.isabs(path):
        cur_dir = os.getcwd()
        path = os.path.join(cur_dir, path)

    if path_children:
        path = os.path.join(path, *path_children)

    with open(path, encoding="UTF-8") as db_config_file:
        return json.load(db_config_file)
