23 lines
686 B
Python
23 lines
686 B
Python
#!/usr/bin/env python3
|
|
import sys
|
|
import os
|
|
|
|
print("Python version:", sys.version)
|
|
print("Working directory:", os.getcwd())
|
|
print("Home directory:", os.path.expanduser('~'))
|
|
|
|
# Check hermes_tools
|
|
try:
|
|
from hermes_tools import web_search, web_extract, read_file, write_file, terminal, json_parse, shell_quote, retry
|
|
print("hermes_tools: AVAILABLE")
|
|
except ImportError as e:
|
|
print("hermes_tools: NOT AVAILABLE -", e)
|
|
|
|
# List available modules
|
|
print("\nSystem Python libraries in path:")
|
|
for p in sys.path:
|
|
if 'site-packages' in p or p == '':
|
|
print(" ", p)
|
|
if os.path.exists(p):
|
|
for item in os.listdir(p)[:10]:
|
|
print(" -", item) |