Files

36 lines
725 B
Python

#!/usr/bin/env python3
"""Quick verification of Hermes environment paths."""
import os
import json
# Key paths to verify
paths = [
"/root/.hermes",
"/root/.hermes/profiles/spark",
"/root/.hermes/skills",
"/root/.hermes/plugins",
"/root/.hermes/cron",
"/root/.hermes/memories",
"/root/.hermes/cache/scratch"
]
results = []
all_valid = True
for path in paths:
exists = os.path.isdir(path)
results.append({"path": path, "valid": exists})
if not exists:
all_valid = False
# Output result
output = {
"valid": all_valid,
"checked_paths": len(paths),
"all_present": all_valid,
"results": results
}
print(json.dumps(output, indent=2))
exit(0 if all_valid else 1)