From 192336d2b05a961d5927000131e9726b496032f2 Mon Sep 17 00:00:00 2001 From: "haoeliu@foxmail.com" Date: Thu, 15 Jun 2023 17:56:34 +0800 Subject: [PATCH] fix the wrong path --- src/main/base/org/bdware/sc/node/ImportNode.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/base/org/bdware/sc/node/ImportNode.java b/src/main/base/org/bdware/sc/node/ImportNode.java index 6e24cbf..345cb63 100644 --- a/src/main/base/org/bdware/sc/node/ImportNode.java +++ b/src/main/base/org/bdware/sc/node/ImportNode.java @@ -16,6 +16,8 @@ public class ImportNode { public String getPath() { if (path.startsWith("@")) return path.replaceAll("@", "/.depyjs/"); + if(!path.startsWith("/")) + return "/" + path; return path; } }