service_go1.8.go 208 B

123456789101112131415
  1. //+build go1.8
  2. package service
  3. import (
  4. "os"
  5. "path/filepath"
  6. )
  7. func (c *Config) execPath() (string, error) {
  8. if len(c.Executable) != 0 {
  9. return filepath.Abs(c.Executable)
  10. }
  11. return os.Executable()
  12. }