diff --git a/zorg/buildbot/builders/AnnotatedBuilder.py b/zorg/buildbot/builders/AnnotatedBuilder.py --- a/zorg/buildbot/builders/AnnotatedBuilder.py +++ b/zorg/buildbot/builders/AnnotatedBuilder.py @@ -84,7 +84,12 @@ command = [script] else: script_path = "../llvm-zorg/zorg/buildbot/builders/annotated/%s" % (script) - command = ["python", script_path, WithProperties("--jobs=%(jobs:-)s")] + # Handle .py script with python, otherwise execute the script directly. + if script_path.endswith('.py'): + command = ["python", script_path, WithProperties("--jobs=%(jobs:-)s")] + else: + command = [script_path] + command += extra_args_with_props f.addStep(AnnotatedCommand(name="annotate",