文件内容
scripts/_const.py
#!/usr/bin/env python3
"""
1688-distribution-knowledge-newton 全局常量
所有模块统一从这里 import,禁止各模块自定义同名常量。
"""
# Skill 版本
SKILL_VERSION = "1.0.0"
# ── OpenClaw 配置文件路径(唯一权威来源)──────────────────────────────────────
import os
from pathlib import Path
# 优先读取 OPENCLAW_CONFIG_DIR 环境变量,默认 ~/.openclaw
OPENCLAW_CONFIG_PATH: Path = Path(
os.environ.get("OPENCLAW_CONFIG_DIR", Path.home() / ".openclaw")
) / "openclaw.json"