diff --git a/src/jsi/client.py b/src/jsi/client.py index e6bd519..d063930 100644 --- a/src/jsi/client.py +++ b/src/jsi/client.py @@ -9,7 +9,7 @@ def send_command(command: str): with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as client: try: - client.connect(SOCKET_PATH) + client.connect(SOCKET_PATH.as_posix()) client.sendall(command.encode()) response = client.recv(4096).decode() print(response) diff --git a/src/jsi/utils.py b/src/jsi/utils.py index 2b17817..95c2012 100644 --- a/src/jsi/utils.py +++ b/src/jsi/utils.py @@ -8,6 +8,7 @@ from enum import Enum from pathlib import Path + class Closeable: def close(self) -> None: ...