MCPcopy Create free account
hub / github.com/abi/screenshot-to-code / __init__

Method __init__

backend/debug/DebugFileWriter.py:9–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7
8class DebugFileWriter:
9 def __init__(self):
10 if not IS_DEBUG_ENABLED:
11 return
12
13 try:
14 self.debug_artifacts_path = os.path.expanduser(
15 f"{DEBUG_DIR}/{str(uuid.uuid4())}"
16 )
17 os.makedirs(self.debug_artifacts_path, exist_ok=True)
18 print(f"Debugging artifacts will be stored in: {self.debug_artifacts_path}")
19 except:
20 logging.error("Failed to create debug directory")
21
22 def write_to_file(self, filename: str, content: str) -> None:
23 try:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected