Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ function Check-Deps {
}
Log "OpenClaw CLI: OK"

$py = Get-Command python3 -ErrorAction SilentlyContinue
$py = Get-Command python -ErrorAction SilentlyContinue #win环境优先 python,兼容first-sync脚本
if (-not $py) {
$py = Get-Command python -ErrorAction SilentlyContinue
$py = Get-Command python3 -ErrorAction SilentlyContinue
}
if (-not $py) {
Error "未找到 python3 或 python"
Expand Down
6 changes: 4 additions & 2 deletions scripts/sync_officials_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@
]

def rj(p, d):
try: return json.loads(pathlib.Path(p).read_text())
except Exception: return d
try:
return json.loads(pathlib.Path(p).read_text(encoding='utf-8'))
except Exception:
return d


# Pre-load openclaw config once (avoid re-reading per agent)
Expand Down
Loading