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

18 lines
387 B
Python

"""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