diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/gen_completion.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/gen_completion.py b/scripts/gen_completion.py index a97f26b..4714bf1 100644 --- a/scripts/gen_completion.py +++ b/scripts/gen_completion.py @@ -8,8 +8,14 @@ No drift: groups, leaves, and per-leaf flags are read straight off the argparse subparsers the registry builds. """ import argparse +import os +import sys from collections import defaultdict +# Run from the repo, not any installed copy: prepend the repo root so +# `python scripts/gen_completion.py` imports this tree, not a stale install. +sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) + from firefly_cli import registry import firefly_cli.commands # noqa: F401 triggers registration |
