1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-11-10 06:47:53 +03:00

refactor: add full intent object path on skill execution during checking

This commit is contained in:
louistiti 2022-11-06 22:25:39 +08:00
parent 0245712e24
commit 303ebea3f3

View File

@ -1,4 +1,5 @@
import fs from 'node:fs'
import path from 'node:path'
import os from 'node:os'
import { spawn } from 'node:child_process'
@ -199,7 +200,10 @@ dotenv.config()
try {
const executionStart = Date.now()
const p = await command(
`${PYTHON_BRIDGE_BIN_PATH} "scripts/assets/intent-object.json"`,
`${PYTHON_BRIDGE_BIN_PATH} "${path.join(
process.cwd(),
'scripts/assets/intent-object.json'
)}"`,
{ shell: true }
)
const executionEnd = Date.now()