pyinstaller missing module workaround

This commit is contained in:
Thomas Waldmann 2025-12-23 18:41:17 +01:00
parent 98aa125386
commit fef9d63111
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -12,6 +12,9 @@ from .base import ENOATTR, API_VERSION
from .base import SaveFile, sync_dir, fdatasync, safe_fadvise
from .base import get_process_id, fqdn, hostname, hostid
# work around pyinstaller "forgetting" to include the xattr module
from . import xattr # noqa: F401
platform_ug: ModuleType | None = None # make mypy happy
if is_linux: # pragma: linux only