hook-appdirs.py 736 B

123456789101112131415161718192021
  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. """
  13. Import hook for appdirs.
  14. On Windows, appdirs tries 2 different methods to get well-known directories
  15. from the system: First with win32com, then with ctypes. Excluding win32com here
  16. avoids including all the win32com related DLLs in programs that don't include
  17. them otherwise.
  18. """
  19. excludedimports = ['win32com']