This repository has been archived on 2024-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
PyBitmessage-2024-12-07/packages/pyinstaller/hooks/pyinstaller_rthook_plugins.py

18 lines
387 B
Python
Raw Normal View History

"""Runtime PyInstaller hook to load plugins"""
import os
import sys
homepath = os.path.abspath(os.path.dirname(sys.argv[0]))
os.environ['PATH'] += ';' + ';'.join([
homepath, os.path.join(homepath, 'Tor'),
os.path.abspath(os.curdir)
])
try:
import pybitmessage.plugins.menu_qrcode
import pybitmessage.plugins.proxyconfig_stem # noqa:F401
except ImportError:
pass