From 14cba5daba9360c8e0b7c88c081cccc7f41665f1 Mon Sep 17 00:00:00 2001 From: megamichi Date: Tue, 31 Oct 2023 10:31:45 +0100 Subject: [PATCH] windows kompaktibel --- cowyeet.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cowyeet.py b/cowyeet.py index e6021f4..e0f3803 100644 --- a/cowyeet.py +++ b/cowyeet.py @@ -18,7 +18,10 @@ yeet_dist = None def clear(): - os.system("clear") + if os.name == "nt": + os.system("cls") + else: + os.system("clear") def on_press(key):