mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-03 04:43:11 +08:00
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
23 lines
709 B
Python
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()
|