Get the jcode debug socket path
()
| 54 | |
| 55 | |
| 56 | def 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 | |
| 62 | def connect_to_socket(path: str) -> Optional[socket.socket]: |