diff --git a/tools/ci/annotate_dm.sh b/tools/ci/annotate_dm.sh index aae883f71f0..e43f930ba1a 100755 --- a/tools/ci/annotate_dm.sh +++ b/tools/ci/annotate_dm.sh @@ -1,4 +1,4 @@ #!/bin/bash set -euo pipefail -tools/bootstrap/python tools/ci/annotate_dm.py "$@" +tools/bootstrap/python -m dm_annotator "$@" diff --git a/tools/ci/annotate_dm.py b/tools/dm_annotator/__main__.py similarity index 91% rename from tools/ci/annotate_dm.py rename to tools/dm_annotator/__main__.py index 2fbe7375d9d..4948fd08656 100644 --- a/tools/ci/annotate_dm.py +++ b/tools/dm_annotator/__main__.py @@ -2,7 +2,7 @@ import sys import re import os.path as path -# Usage: python3 annotate_dm.py [filename] +# Usage: tools/bootstrap/python -m dm_annotator [filename] # If filename is not provided, stdin is checked instead def red(text): @@ -44,7 +44,7 @@ def main(): annotate(sys.stdin.read()) else: print(red("Error: No input provided")) - print("Usage: tools/ci/annotate_dm.sh [filename]") + print("Usage: tools/bootstrap/python -m dm_annotator [filename]") sys.exit(1) if __name__ == '__main__':