27 lines
610 B
Python
Executable File
27 lines
610 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""web/search — deprecated. Use bin/web/search.go (SearXNG, no Python client).
|
|
|
|
bin/web/search.go QUERY [--json] [-n N] [--site HOST]
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
import os
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
|
|
|
|
def main(argv: list[str]) -> int:
|
|
print(
|
|
"bin/web/search is deprecated; use bin/web/search.go",
|
|
file=sys.stderr,
|
|
)
|
|
target = ROOT / "bin" / "web" / "search.go"
|
|
os.execvp("go", ["go", "run", str(target), *argv])
|
|
return 1
|
|
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(main(sys.argv[1:]))
|