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.
17 lines
391 B
Python
Executable File
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()
|