28 lines
828 B
Python
28 lines
828 B
Python
#!/usr/bin/env python3
|
|
"""Quick environment diagnostic for the Spark troupe."""
|
|
|
|
import sys
|
|
import os
|
|
import platform
|
|
|
|
def main():
|
|
"""Print environment details."""
|
|
print(f"Python: {sys.version}")
|
|
print(f"Version info: {sys.version_info}")
|
|
print(f"Platform: {platform.system()} {platform.release()}")
|
|
print(f"Architecture: {platform.machine()}")
|
|
print(f"Working directory: {os.getcwd()}")
|
|
print(f"User: {os.getenv('USER', 'unknown')}")
|
|
print(f"Hermes profile: {os.getenv('HERMES_PROFILE', 'spark')}")
|
|
|
|
# Check for hermes_tools
|
|
try:
|
|
from hermes_tools import web_search, terminal, read_file
|
|
print("hermes_tools: available")
|
|
except ImportError as e:
|
|
print(f"hermes_tools: NOT available ({e})")
|
|
|
|
return 0
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(main()) |