diff --git a/ScriptEngine/src/main/NodeJsHelper.cpp b/ScriptEngine/src/main/NodeJsHelper.cpp index 52e7cf5ff8..2ef50db6bc 100644 --- a/ScriptEngine/src/main/NodeJsHelper.cpp +++ b/ScriptEngine/src/main/NodeJsHelper.cpp @@ -111,6 +111,7 @@ bool loadPluginCode(script::ScriptEngine* engine, std::string entryScriptPath, s if (!EndsWith(pluginDirPath, "/")) pluginDirPath += "/"; pluginDirPath = ReplaceStr(pluginDirPath, "\\", "/"); + entryScriptPath = ReplaceStr(entryScriptPath, "\\", "/"); // Find setup auto it = setups->find(engine);