1
0
mirror of https://github.com/go-task/task.git synced 2025-05-19 22:33:35 +02:00

Use relative path

This commit is contained in:
Andrey Nering 2017-02-27 10:57:09 -03:00
parent 5b1d106724
commit 7cab3997c1

View File

@ -6,17 +6,14 @@ import (
"log" "log"
"os" "os"
"os/exec" "os/exec"
"path/filepath"
"github.com/kardianos/osext"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
) )
var ( var (
CurrentDirectory, _ = osext.ExecutableFolder() TaskFilePath = "Taskfile.yml"
TaskFilePath = filepath.Join(CurrentDirectory, "Taskfile.yml") ShExists bool
ShExists bool ShPath string
ShPath string
Tasks = make(map[string]*Task) Tasks = make(map[string]*Task)
) )