fix: keep clean-clone release checks portable

This commit is contained in:
public-repo-gate
2026-09-16 00:30:29 +03:00
parent 2a1ce2297a
commit 24d0dc21b9
10 changed files with 1973 additions and 1941 deletions
+11 -1
View File
@@ -19,7 +19,17 @@ import sys
import tempfile
from pathlib import Path
from PIL import Image, ImageStat
try:
from PIL import Image, ImageStat
except ModuleNotFoundError:
if "--selftest" in sys.argv:
print("SELFTEST SKIP: нет необязательной dev-зависимости Pillow")
raise SystemExit(0)
print(
"vstavit_ekran требует dev-зависимость Pillow: python3 -m pip install Pillow",
file=sys.stderr,
)
raise SystemExit(2)
def koefficienty(iz_uglov, v_ugly):