# ------------------------------------------------------------------ # Copyright (c) 2020 PyInstaller Development Team. # # This file is distributed under the terms of the GNU General Public # License (version 2.0 or later). # # The full license is available in LICENSE.GPL.txt, distributed with # this software. # # SPDX-License-Identifier: GPL-2.0-or-later # ------------------------------------------------------------------ """ Import hook for appdirs. On Windows, appdirs tries 2 different methods to get well-known directories from the system: First with win32com, then with ctypes. Excluding win32com here avoids including all the win32com related DLLs in programs that don't include them otherwise. """ excludedimports = ['win32com']