fix(ugo): import the PPM module explicitly

Resolve the module instead of its exported class so embedded-thumbnail decoding works.
This commit is contained in:
rekushi committed 2026-10-29 04:25:10 +00:00
1 parent a61a22ab43
commit 3bd333c1aa
1 file changed
+2 -1
+2 -1
View File
@@ -8,11 +8,12 @@ from __future__ import annotations
import os import os
import sys import sys
from importlib import import_module
from base64 import b64decode, b64encode from base64 import b64decode, b64encode
import xml.etree.ElementTree as ET import xml.etree.ElementTree as ET
try: try:
from . import PPM as _ppm_module _ppm_module = import_module(".PPM", __package__)
HasPPM = True HasPPM = True
except (ImportError, ValueError): except (ImportError, ValueError):
try: try: