Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Amund211 committed May 21, 2023
1 parent 24e69b6 commit 70ebb79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/prism/discordrp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ def _get_pipe(self) -> str:
return os.path.join("/tmp/", SOCKET_NAME)

def _try_socket(self, pipe: str, i: int) -> None:
if sys.platform == "win32":
from typing import Final

WINDOWS: Final = "win32"
if sys.platform == WINDOWS:
self._socket = open(pipe.format(i), "rb+")
else:
self._socket = socket.socket(socket.AF_UNIX)
Expand Down

0 comments on commit 70ebb79

Please sign in to comment.