1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-09-20 06:17:20 +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 4b003a852e
commit c38012afcf
No known key found for this signature in database
GPG Key ID: 7ECA3DD523793FE6

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()