Files
galaxy/scripts/tool_source/populate_store.py
T
mvdbeek 761e43d544 Relocate tool_source_store to galaxy.tools.source_store
The package is app-coupled (galaxy.model, galaxy.config, galaxy.queues,
galaxy.datatypes) and only consumed from app-side code, so it belongs
under galaxy.tools rather than a new top-level package. Riding the
existing packages/app tools symlink also removes the need for a
dedicated package symlink. Also drop an unused back-compat alias and
fix stale doc references.

Claude-Session: https://claude.ai/code/session_018L7ZmCv2ubKA3JNeSL8Pkr
2026-07-13 10:26:59 +02:00

23 lines
709 B
Python

#!/usr/bin/env python
"""Standalone CLI entry for the tool source store populator.
Thin shim: extends ``sys.path`` so ``galaxy.*`` resolves when the script is
invoked directly (no venv-installed galaxy package required), then delegates
to :func:`galaxy.tools.source_store.populator.main`. All flags, including
``--watch``, are documented on that function's argparse setup.
In-process callers should import the populator module directly rather than
shelling out to this script.
"""
import sys
from pathlib import Path
galaxy_root = Path(__file__).parent.parent.parent
sys.path.insert(0, str(galaxy_root / "lib"))
from galaxy.tools.source_store.populator import main
if __name__ == "__main__":
main()