mirror of
https://github.com/leon-ai/leon.git
synced 2024-12-01 03:15:58 +03:00
fix(server): Python bridge fails to execute on Windows intent object absolute path because of whitespace
This commit is contained in:
parent
1d59b0a774
commit
0245712e24
@ -199,7 +199,7 @@ dotenv.config()
|
||||
try {
|
||||
const executionStart = Date.now()
|
||||
const p = await command(
|
||||
`${PYTHON_BRIDGE_BIN_PATH} scripts/assets/intent-object.json`,
|
||||
`${PYTHON_BRIDGE_BIN_PATH} "scripts/assets/intent-object.json"`,
|
||||
{ shell: true }
|
||||
)
|
||||
const executionEnd = Date.now()
|
||||
|
@ -224,7 +224,7 @@ class Brain {
|
||||
try {
|
||||
fs.writeFileSync(intentObjectPath, JSON.stringify(intentObj))
|
||||
this.process = spawn(
|
||||
`${PYTHON_BRIDGE_BIN_PATH} ${intentObjectPath}`,
|
||||
`${PYTHON_BRIDGE_BIN_PATH} "${intentObjectPath}"`,
|
||||
{ shell: true }
|
||||
)
|
||||
} catch (e) {
|
||||
|
Loading…
Reference in New Issue
Block a user