Vitalis_LFM2.5_Cortex.GGUF / src /devcore /service_manager.py
FerrellSyntheticIntelligence's picture
Upload folder using huggingface_hub
d2a5f5a verified
Raw
History Blame Contribute Delete
559 Bytes
import subprocess
import os
class ServiceManager:
def __init__(self, root="src/devcore/sandbox/project_build"):
self.root = root
self.process = None
def start(self):
# Pointing to the new entry point: main.py
self.process = subprocess.Popen(
["python3", "main.py"],
cwd=self.root,
env={**os.environ, "PYTHONPATH": self.root}
)
print(f"[+] SERVICE STARTED: PID {self.process.pid}")
def stop(self):
if self.process:
self.process.terminate()