FIXUP: Fix lint and log to stderr

This commit is contained in:
Alex Pyrgiotis 2024-10-09 18:05:48 +03:00
parent 297fe5ecdd
commit 073a6e69f8
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -4,8 +4,8 @@ import sys
try: try:
from . import vendor # type: ignore [attr-defined] from . import vendor # type: ignore [attr-defined]
vendor_path = vendor.__path__[0] vendor_path: str = vendor.__path__[0]
print(f"Using vendored PyMuPDF libraries from '{vendor_path}'") print(f"Using vendored PyMuPDF libraries from '{vendor_path}'", file=sys.stderr)
sys.path.insert(0, vendor_path) sys.path.insert(0, vendor_path)
except ImportError: except ImportError:
pass pass