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
74582899a2
commit
4b003a852e
@ -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