Add hand-crafted entry point scripts under ./bin
This commit is contained in:
15
bin/cellid-ols-import
Executable file
15
bin/cellid-ols-import
Executable 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
15
bin/ols
Executable 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())
|
Reference in New Issue
Block a user