1
0
mirror of https://github.com/huggingface/knockknock.git synced 2021-08-28 00:30:42 +03:00

minor comment

This commit is contained in:
Victor SANH
2020-02-20 21:09:57 -05:00
parent ff22d2a15d
commit 9a6d3e4466

View File

@@ -10,6 +10,7 @@ DATE_FORMAT = "%Y-%m-%d %H:%M:%S"
def desktop_sender(title:str="knockknock"):
def show_notification(text:str,title:str):
# Check the OS
if platform.system() == "Darwin":
subprocess.run(["sh", "-c", "osascript -e 'display notification \"%s\" with title \"%s\"'" % (text, title)])