28 lines
669 B
Python
28 lines
669 B
Python
#!/usr/bin/env python3
|
|
"""Daily entrypoint for the DingTalk -> Feishu collection workflow.
|
|
|
|
This file exists at the project root because the Windows scheduled task points
|
|
here. It delegates to the maintained SOP runner under skills/.
|
|
"""
|
|
|
|
import os
|
|
import subprocess
|
|
import sys
|
|
|
|
|
|
def main():
|
|
root = os.path.dirname(os.path.abspath(__file__))
|
|
runner = os.path.join(
|
|
root,
|
|
"skills",
|
|
"dingtalk-feishu-collector",
|
|
"scripts",
|
|
"run_all.py",
|
|
)
|
|
args = sys.argv[1:] or ["--quick", "--skip-kb"]
|
|
return subprocess.call([sys.executable, runner] + args, cwd=root)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
raise SystemExit(main())
|