mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-01-01 00:57:32 +01:00
17 lines
237 B
Go
17 lines
237 B
Go
//+build !go1.8
|
|
|
|
package service
|
|
|
|
import (
|
|
"path/filepath"
|
|
|
|
"github.com/kardianos/osext"
|
|
)
|
|
|
|
func (c *Config) execPath() (string, error) {
|
|
if len(c.Executable) != 0 {
|
|
return filepath.Abs(c.Executable)
|
|
}
|
|
return osext.Executable()
|
|
}
|