From a720e643c99ad796a5adfccdba617c86b3f6c6aa Mon Sep 17 00:00:00 2001 From: Kevin Sandow Date: Mon, 16 Oct 2023 17:15:48 +0200 Subject: [PATCH] Resolve local dependencies dynamically --- node/variables.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/node/variables.js b/node/variables.js index c631896..cd53910 100644 --- a/node/variables.js +++ b/node/variables.js @@ -1,8 +1,10 @@ +const path = require("node:path") + module.exports={ - "cfunctions_path":process.env.HOME+"/thegame/js/common_functions.js", - "functions_path":process.env.HOME+"/thegame/node/server_functions.js", - "worker_path":process.env.HOME+"/thegame/node/server_worker.js", - "data_path":process.env.HOME+"/thegame/node/data.js", + "cfunctions_path":path.resolve(__dirname, "../js/common_functions.js"), + "functions_path":path.resolve(__dirname, "server_functions.js"), + "worker_path":path.resolve(__dirname, "server_worker.js"), + "data_path":path.resolve(__dirname, "data.js"), "base_url":"http://thegame.com", "keyword":"123", "master":"123",