MCPcopy Create free account
hub / github.com/1jehuang/jcode / get_socket_path

Function get_socket_path

scripts/jcode_monitor.py:56–59  ·  view source on GitHub ↗

Get the jcode debug socket path

()

Source from the content-addressed store, hash-verified

54
55
56def get_socket_path() -> str:
57 """Get the jcode debug socket path"""
58 runtime_dir = os.environ.get("XDG_RUNTIME_DIR", f"/run/user/{os.getuid()}")
59 return os.path.join(runtime_dir, "jcode-debug.sock")
60
61
62def connect_to_socket(path: str) -> Optional[socket.socket]:

Callers 1

mainFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected