diff --git a/realize/tools.go b/realize/tools.go index b9d70fb..a4d93ea 100644 --- a/realize/tools.go +++ b/realize/tools.go @@ -154,7 +154,7 @@ func (t *Tool) Compile(path string, stop <-chan bool) (response Response) { if t.Dir != "" { cmd.Dir, _ = filepath.Abs(t.Dir) } else { - cmd.Dir = filepath.Dir(path) + cmd.Dir = path } cmd.Stdout = &out cmd.Stderr = &stderr diff --git a/realize/utils.go b/realize/utils.go index 9f45e38..eaf6dfd 100644 --- a/realize/utils.go +++ b/realize/utils.go @@ -90,4 +90,4 @@ func isHidden(path string) bool { } } return false -} +} \ No newline at end of file