hook-shotgun_api3.py 837 B

1234567891011121314151617181920212223
  1. # ------------------------------------------------------------------
  2. # Copyright (c) 2020 PyInstaller Development Team.
  3. #
  4. # This file is distributed under the terms of the GNU General Public
  5. # License (version 2.0 or later).
  6. #
  7. # The full license is available in LICENSE, distributed with
  8. # this software.
  9. #
  10. # SPDX-License-Identifier: GPL-2.0-or-later
  11. # ------------------------------------------------------------------
  12. from PyInstaller.utils.hooks import collect_data_files
  13. # Shotgun is using "six" to import these and
  14. # PyInstaller does not seem to catch them correctly.
  15. hiddenimports = ["xmlrpc", "xmlrpc.client"]
  16. # Collect the following files:
  17. # /shotgun_api3/lib/httplib2/python2/cacerts.txt
  18. # /shotgun_api3/lib/httplib2/python3/cacerts.txt
  19. # /shotgun_api3/lib/certifi/cacert.pem
  20. datas = collect_data_files("shotgun_api3")