From 6f2bb9fd9eb699c93dad2a28275d9b29f87cf410 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Thu, 23 Mar 2023 00:37:17 -0700 Subject: [PATCH] server: hack fix python sdk path --- server/src/plugin/runtime/python-worker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/plugin/runtime/python-worker.ts b/server/src/plugin/runtime/python-worker.ts index 71bb1b6aa..e6b21c6c0 100644 --- a/server/src/plugin/runtime/python-worker.ts +++ b/server/src/plugin/runtime/python-worker.ts @@ -59,7 +59,7 @@ export class PythonRuntimeWorker extends ChildProcessWorker { args.push(this.pluginId); const types = require.resolve('@scrypted/types'); - const PYTHONPATH = types.substring(0, types.indexOf('@scrypted/types') + '@scrypted/types'.length); + const PYTHONPATH = types.substring(0, types.indexOf('types') + 'types'.length); this.worker = child_process.spawn(pythonPath, args, { // stdin, stdout, stderr, peer in, peer out stdio: ['pipe', 'pipe', 'pipe', 'pipe', 'pipe'],