refactor(rpa): 重构 scripts/rpa 目录结构与命名
按 common/connectors/inventory/receipt 分层并重命名 - common/: rpa_common, rpa_heartbeat, download_artifact_fallback, new_rpa_worker_secret - connectors/dsv|crane/: 登录网站连接器,库存与收料共用 - inventory/: inventory_rpa_worker, run_inventory_batch_trigger, start_inventory_worker, register_inventory_worker_tasks - receipt/: receipt_rpa_worker, receipt_crane/dbs_export, start_receipt_worker 保留裸 import + sys.path 引导;修正懒加载路径; 按范围命名 register_rpa_background_tasks -> register_inventory_worker_tasks; 同步 backend 测试、start_local.ps1、.env 注释、docs 与 README 路径。
This commit is contained in:
1 parent
09deada712
commit
f3050164d0
40 files changed
+384
-172
No files matched your search
@@ -13,7 +13,7 @@ def _load_freight_rpa_heartbeat_module():
|
||||
rpa_dir = Path(__file__).resolve().parents[2] / "scripts" / "rpa"
|
||||
if str(rpa_dir) not in sys.path:
|
||||
sys.path.insert(0, str(rpa_dir))
|
||||
module_path = rpa_dir / "freight_rpa_heartbeat.py"
|
||||
module_path = rpa_dir / "common" / "rpa_heartbeat.py"
|
||||
spec = importlib.util.spec_from_file_location("freight_rpa_heartbeat_test", module_path)
|
||||
module = importlib.util.module_from_spec(spec)
|
||||
assert spec.loader is not None
|
||||
|
||||
Reference in new issue
Block a user