15 lines
637 B
Python
Executable File
15 lines
637 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""Regenerate codeclaw-launcher.py from current key files.
|
|
Normally not needed — launcher reads keys at runtime.
|
|
But if paths change or new fallback models are added, run this.
|
|
"""
|
|
import os, sys
|
|
sys.path.insert(0, os.path.expanduser('~/.timmy/scripts'))
|
|
import importlib.util
|
|
spec = importlib.util.spec_from_file_location("launcher", os.path.expanduser('~/.timmy/scripts/codeclaw-launcher.py'))
|
|
launcher = importlib.util.module_from_spec(spec)
|
|
with open(os.path.expanduser('~/.timmy/openrouter_key')) as f:
|
|
key = f.read().strip()
|
|
print("Key file OK:", key[:10] + "...")
|
|
print("Launcher script is current.")
|