Add hand-crafted entry point scripts under ./bin

This commit is contained in:
Teemu Ikonen
2023-03-30 15:31:19 +03:00
parent abac29c0e9
commit de84ffa2e5
2 changed files with 30 additions and 0 deletions

15
bin/cellid-ols-import Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Entry point script for running ols inside the source tree
import re
import sys
from pathlib import Path
# Run from local source dir
sys.path.insert(0, str(Path(sys.argv[0]).resolve().parent.parent))
from ols.resolver.cellid.cellid_import import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

15
bin/ols Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Entry point script for running ols inside the source tree
import re
import sys
from pathlib import Path
# Run from local source dir
sys.path.insert(0, str(Path(sys.argv[0]).resolve().parent.parent))
from ols.server import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())