"""Pyinstaller hooks for the main module."""
from PyInstaller.utils.hooks import get_module_file_attribute  # type: ignore
import os

srctools_loc = os.path.dirname(get_module_file_attribute('srctools'))

datas = [
    # Add our FGD database.
    (os.path.join(srctools_loc, 'fgd.lzma'), 'srctools'),
]

excludedimports = [
    'PIL',  # Pillow is optional for VTF, the user will import if required.
    'tkinter',  # Same for Tkinter.
    'wx',  # And wxWidgets.
]
