pyi_rth_gi.py 632 B

123456789101112131415161718192021
  1. #-----------------------------------------------------------------------------
  2. # Copyright (c) 2015-2023, PyInstaller Development Team.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. #
  7. # The full license is in the file COPYING.txt, distributed with this software.
  8. #
  9. # SPDX-License-Identifier: Apache-2.0
  10. #-----------------------------------------------------------------------------
  11. def _pyi_rthook():
  12. import os
  13. import sys
  14. os.environ['GI_TYPELIB_PATH'] = os.path.join(sys._MEIPASS, 'gi_typelibs')
  15. _pyi_rthook()
  16. del _pyi_rthook