Update Healer Man server
This commit is contained in:
1 parent
a05a79eb83
commit
f8314e7de1
14 files changed
+529
-108
No files matched your search
+15
-9
@@ -41,17 +41,23 @@ def vite_node_command() -> Path:
|
||||
return executable
|
||||
|
||||
|
||||
def runtime_session_command(source: str, level: int) -> list[str]:
|
||||
return [
|
||||
str(vite_node_command()),
|
||||
"--mode",
|
||||
"balance-lab",
|
||||
str(RUNTIME),
|
||||
"session",
|
||||
"--source",
|
||||
source,
|
||||
"--level",
|
||||
str(level),
|
||||
]
|
||||
|
||||
|
||||
class RuntimeSession:
|
||||
def __init__(self, source: str, level: int, workspace: Path) -> None:
|
||||
command = [
|
||||
str(vite_node_command()),
|
||||
str(RUNTIME),
|
||||
"session",
|
||||
"--source",
|
||||
source,
|
||||
"--level",
|
||||
str(level),
|
||||
]
|
||||
command = runtime_session_command(source, level)
|
||||
self.process = subprocess.Popen(
|
||||
command,
|
||||
cwd=ROOT,
|
||||
|
||||
Reference in new issue
Block a user