feat(cli): add suppot for plugindir as environment variable

This commit is contained in:
bergquist
2016-03-07 14:20:51 +01:00
parent f6c5242a93
commit 1ff428087e
+3 -1
View File
@@ -12,7 +12,9 @@ import (
var version = "master"
func getGrafanaPluginPath() string {
//TODO: try to get path from os:env GF_PLUGIN_FOLDER
if os.Getenv("GF_PLUGIN_DIR") != "" {
return os.Getenv("GF_PLUGIN_DIR")
}
os := runtime.GOOS
if os == "windows" {