From 14832a2c849c750e4086fcdbba1f8eebcea2e080 Mon Sep 17 00:00:00 2001 From: asoseil Date: Thu, 16 Nov 2017 08:34:14 +0100 Subject: [PATCH] #126 fixed --- watcher.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/watcher.go b/watcher.go index 484b9f3..0e6d5e2 100644 --- a/watcher.go +++ b/watcher.go @@ -97,7 +97,8 @@ func (p *Project) watch() { p.cmd(stop, "before", true) // indexing files and dirs for _, dir := range p.Watcher.Paths { - base := filepath.Join(wdir(), dir) + base, _ := filepath.Abs(p.Path) + base = filepath.Join(base, dir) if _, err := os.Stat(base); err == nil { if err := filepath.Walk(base, p.walk); err == nil { p.tool(stop, base)