def restore(path):
    if (os.path.exists(path)):
        try:
            with open(path, 'r') as f:
                return json.load(f)
        except Exception as ex:
            raise DownstreamError(
                'Couldn\'t parse \'{0}\': {1}'.format(path, str(ex)))
    else:
        return dict()
Get the path to the package.json file for the current file.
dataset/ETHPy150Open StorjOld/downstream-farmer/downstream_farmer/utils.py/restore--crossover with--dataset/ETHPy150Open SublimeLinter/SublimeLinter3/lint/node_linter.py/NodeLinter.get_manifest_path