Fix karen

This commit is contained in:
Aaron Dewes 2023-02-23 23:29:58 +01:00 committed by GitHub
parent b990d5a9ea
commit 42d763a5bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

6
karen
View File

@ -10,11 +10,11 @@ import os
rootDir = os.path.dirname(os.path.abspath(__file__))
os.chdir(rootDir)
if os.path.exists("events/karen"):
os.remove("events/karen")
if os.path.exists("karen.socket"):
os.remove("karen.socket")
server = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
server.bind("events/karen")
server.bind("karen.socket")
while True:
server.listen(1)