Explorar el Código

pyinstaller missing module workaround

Thomas Waldmann hace 1 día
padre
commit
fef9d63111
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/borg/platform/__init__.py

+ 3 - 0
src/borg/platform/__init__.py

@@ -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