From 4087c6ef4e6f24c3d4d3e85ffda477e8cf77d15b Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Tue, 30 Jul 2024 11:39:58 +0530 Subject: [PATCH] Fix path --- desktop/src/main/services/ml.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desktop/src/main/services/ml.ts b/desktop/src/main/services/ml.ts index 4f69fd90b1..a8ab08ed16 100644 --- a/desktop/src/main/services/ml.ts +++ b/desktop/src/main/services/ml.ts @@ -4,6 +4,7 @@ import { ipcRenderer, MessageChannelMain } from "electron"; import { utilityProcess } from "electron/main"; +import path from "node:path"; /** * Create a new ML session. @@ -62,7 +63,7 @@ import { utilityProcess } from "electron/main"; export const createMLSession = () => { const { port1, port2 } = new MessageChannelMain(); - const child = utilityProcess.fork("./ml-util-test"); + const child = utilityProcess.fork(path.join(__dirname, "ml-util-test.js")); child.postMessage(/* unused */ "", [port1]); ipcRenderer.postMessage("createMLSession/port", /* unused */ "", [port2]);