From a0d8c7251c27788fda405c2311f9479b8ae1e244 Mon Sep 17 00:00:00 2001 From: louistiti Date: Sun, 6 Nov 2022 22:25:39 +0800 Subject: [PATCH] refactor: add full intent object path on skill execution during checking --- scripts/check.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/check.js b/scripts/check.js index 6bf8a54c..189579f2 100644 --- a/scripts/check.js +++ b/scripts/check.js @@ -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()