MCPcopy Create free account
hub / github.com/RawdogReverend/TermNet / start_backend

Method start_backend

run.py:57–74  ·  view source on GitHub ↗

Start the main backend

(self)

Source from the content-addressed store, hash-verified

55 print(f"Warning: could not auto-kill old processes: {e}")
56
57 def start_backend(self):
58 """Start the main backend"""
59 backend_dir = self.root_dir / "backend"
60 if not backend_dir.exists():
61 print(f"Error: Backend directory not found: {backend_dir}")
62 return False
63
64 print("Starting TermNet backend...")
65 try:
66 # show logs instead of swallowing them
67 self.backend_process = subprocess.Popen(
68 [sys.executable, "-m", "termnet.main"],
69 cwd=backend_dir
70 )
71 return True
72 except Exception as e:
73 print(f"Error starting backend: {e}")
74 return False
75
76 def start_extensions(self):
77 """Start all extensions in the extensions folder"""

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected