Files
entropy/client/equo.py
Sławomir Nizio 252c260f06 use entropy_path_loader only for running from the checkout
After this commit alone it would not work when installed (unless module
paths are set in a special way). Next changes will introduce
installation to site-packages so no custom PYTHONPATH will be necessary.
2018-11-26 20:15:36 +01:00

17 lines
391 B
Python
Executable File

#!/usr/bin/python
import os
import sys
os.environ['ETP_GETTEXT_DOMAIN'] = "entropy"
from os import path as osp
_base = osp.dirname(osp.dirname(osp.realpath(__file__)))
if os.path.isfile(osp.join(_base, "entropy-in-vcs-checkout")):
sys.path.insert(0, osp.join(_base, "entropy_path_loader"))
import entropy_path_loader
del osp
from solo.main import main
sys.argv[0] = "equo"
main()