From 583a32e8e2539857914acaba92fbae50ab760f70 Mon Sep 17 00:00:00 2001 From: MeexReay Date: Sat, 20 Sep 2025 16:14:22 +0300 Subject: [PATCH] quick fix pywin32 --- pyproject.toml | 5 ++--- src/pygwin2/console.py | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3e8e411..d319ff8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ version = "2.0.0" authors = [ { name="MeexReay", email="meexreay@gmail.com" }, ] -description = "A small example package" +description = "A library for creating GUI-applications on pygame." readme = "README.md" requires-python = ">=3.7" classifiers = [ @@ -23,9 +23,8 @@ dependencies = [ "wxPython", # crazy "randstr", # just why "cython", - "pywin32", + # "pywin32", # make it optional "moviepy", - "pipwin", "wave", "opencv-python", ] diff --git a/src/pygwin2/console.py b/src/pygwin2/console.py index 08f6816..dea2a22 100644 --- a/src/pygwin2/console.py +++ b/src/pygwin2/console.py @@ -4,9 +4,9 @@ try: import win32con as w32c import win32gui as w32g import win32api as w32a - nonwin32api = True -except: nonwin32api = False +except: + nonwin32api = True import pyautogui as pag class console: