Procházet zdrojové kódy

feat(plugins): make sure windows data plugin path is absolute (#6264)

Carl Bergquist před 9 roky
rodič
revize
7bdedff89c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      pkg/setting/setting.go

+ 1 - 1
pkg/setting/setting.go

@@ -461,7 +461,7 @@ func NewConfigContext(args *CommandLineArgs) error {
 
 	Env = Cfg.Section("").Key("app_mode").MustString("development")
 	InstanceName = Cfg.Section("").Key("instance_name").MustString("unknown_instance_name")
-	PluginsPath = Cfg.Section("paths").Key("plugins").String()
+	PluginsPath = makeAbsolute(Cfg.Section("paths").Key("plugins").String(), HomePath)
 
 	server := Cfg.Section("server")
 	AppUrl, AppSubUrl = parseAppUrlAndSubUrl(server)