def proper_path(path):
    if path.startswith("./"):
        pass
    elif path.startswith("/"):
        path = ".%s" % path
    elif path.startswith("."):
        while path.startswith("."):
            path = path[1:]
        if path.startswith("/"):
            path = ".%s" % path
    else:
        path = "./%s" % path

    if not path.endswith("/"):
        path += "/"

    return path
Make sure your configuration is setup correctly.
dataset/ETHPy150Open rohe/pyoidc/src/oic/utils/keyio.py/proper_path--crossover with--dataset/ETHPy150Open sendgrid/python-http-client/tests/test_unit.py/TestConfig.test_initialization