From 1ef4e1dbc45c319e501f11dcecd6f28a5d145c29 Mon Sep 17 00:00:00 2001 From: ByteWired9 <77468737+bytewired9@users.noreply.github.com> Date: Wed, 26 Jun 2024 14:20:16 -0500 Subject: [PATCH] Fixed a schmol prollem --- oszsave.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/oszsave.py b/oszsave.py index 7b43267..25c0174 100644 --- a/oszsave.py +++ b/oszsave.py @@ -5,7 +5,6 @@ import httpx import shutil import unicodedata -import curses from datetime import datetime from urllib.parse import unquote, urljoin from selenium import webdriver @@ -15,7 +14,13 @@ from selenium.common.exceptions import TimeoutException from colorama import init import signal - +try: + import curses +except ImportError: + if os.name == 'nt': + import windows_curses as curses + else: + raise # Initialize colorama init(autoreset=True)