mirror of
https://github.com/kardianos/service.git
synced 2025-09-26 21:01:20 +08:00
17 lines
226 B
Go
17 lines
226 B
Go
//go:build go1.8
|
|
// +build go1.8
|
|
|
|
package service
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
)
|
|
|
|
func (c *Config) execPath() (string, error) {
|
|
if len(c.Executable) != 0 {
|
|
return filepath.Abs(c.Executable)
|
|
}
|
|
return os.Executable()
|
|
}
|