quick fix pywin32

This commit is contained in:
MeexReay 2025-09-20 16:14:22 +03:00
parent 9b8b461f1e
commit 583a32e8e2
2 changed files with 4 additions and 5 deletions

View file

@ -4,7 +4,7 @@ version = "2.0.0"
authors = [ authors = [
{ name="MeexReay", email="meexreay@gmail.com" }, { name="MeexReay", email="meexreay@gmail.com" },
] ]
description = "A small example package" description = "A library for creating GUI-applications on pygame."
readme = "README.md" readme = "README.md"
requires-python = ">=3.7" requires-python = ">=3.7"
classifiers = [ classifiers = [
@ -23,9 +23,8 @@ dependencies = [
"wxPython", # crazy "wxPython", # crazy
"randstr", # just why "randstr", # just why
"cython", "cython",
"pywin32", # "pywin32", # make it optional
"moviepy", "moviepy",
"pipwin",
"wave", "wave",
"opencv-python", "opencv-python",
] ]

View file

@ -4,9 +4,9 @@ try:
import win32con as w32c import win32con as w32c
import win32gui as w32g import win32gui as w32g
import win32api as w32a import win32api as w32a
nonwin32api = True
except:
nonwin32api = False nonwin32api = False
except:
nonwin32api = True
import pyautogui as pag import pyautogui as pag
class console: class console: