remove dep on osext

This commit is contained in:
Daniel Theophanes
2019-02-08 09:29:24 -08:00
parent 4c239ee84e
commit 56787a3ea0
4 changed files with 8 additions and 18 deletions
+1 -2
View File
@@ -14,7 +14,6 @@ import (
"os/exec"
"path/filepath"
"github.com/kardianos/osext"
"github.com/kardianos/service"
)
@@ -105,7 +104,7 @@ func (p *program) Stop(s service.Service) error {
}
func getConfigPath() (string, error) {
fullexecpath, err := osext.Executable()
fullexecpath, err := os.Executable()
if err != nil {
return "", err
}