From 01ab72df2311d965da18d9978e2daff995094f8d Mon Sep 17 00:00:00 2001 From: xSmurf Date: Mon, 15 Jun 2015 07:39:20 +0000 Subject: [PATCH] Added config file path to profile --- profile.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/profile.go b/profile.go index 76999b8..9972d03 100644 --- a/profile.go +++ b/profile.go @@ -14,6 +14,8 @@ type Profile struct { Name string // Path to binary to launch Path string + // Path of the config file + ConfigPath string `json:"-"` // Optional path of binary to watch for watchdog purposes if different than Path Watchdog string // Optional wrapper binary to use when launching command (ex: tsocks) @@ -151,5 +153,6 @@ func loadProfileFile(file string) (*Profile, error) { if p.Name == "" { p.Name = path.Base(p.Path) } + p.ConfigPath = file return p, nil }