py-sync-comm-libs/env/Lib/site-packages/PyInstaller/hooks/rthooks/pyi_rth_gi.py
2024-04-25 09:12:48 +08:00

22 lines
632 B
Python

#-----------------------------------------------------------------------------
# Copyright (c) 2015-2023, PyInstaller Development Team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#
# SPDX-License-Identifier: Apache-2.0
#-----------------------------------------------------------------------------
def _pyi_rthook():
import os
import sys
os.environ['GI_TYPELIB_PATH'] = os.path.join(sys._MEIPASS, 'gi_typelibs')
_pyi_rthook()
del _pyi_rthook