File: hook-usb1.py

package info (click to toggle)
python-libusb1 3.3.1%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 488 kB
  • sloc: python: 3,259; sh: 98; makefile: 5
file content (12 lines) | stat: -rw-r--r-- 385 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
# pylint: disable=missing-module-docstring
# pylint: disable=invalid-name
import logging
# pylint: disable=import-error
from PyInstaller.utils.hooks import collect_dynamic_libs
# pylint: enable=import-error

logger = logging.getLogger(__name__)
logger.info("--- libusb1 pyinstaller hook ---")
binaries = collect_dynamic_libs('usb1')

logger.info("Added libusb binaries: %s", binaries)