This commit is contained in:
1-6
2023-07-25 09:54:02 +08:00
parent e5163b233a
commit 1b9311c5e6
2 changed files with 30 additions and 28 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ func initNodePlugins() {
plugins := []string{root}
os.Mkdir(root, 0755)
filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
if !strings.HasPrefix(path, "/Users/a1-6/Code/sillyplus/plugins/") {
if !strings.HasPrefix(path, utils.ExecPath+"/plugins/") {
return nil
}
files := strings.Split(strings.Replace(path, root+"/", "", 1), "/")