MCPcopy Create free account
hub / github.com/answerlink/IntelliQ / load_file_to_obj

Function load_file_to_obj

utils/file_utils.py:6–12  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

4
5
6def load_file_to_obj(filepath):
7 try:
8 with open(filepath, 'r', encoding='utf-8') as file:
9 return json.load(file)
10 except (FileNotFoundError, json.JSONDecodeError) as e:
11 logging.error(f"Error loading scene prompts: {e}")
12 return {}

Callers 3

__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected