18 lines
387 B
Python
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
|