mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2024-12-29 00:30:30 +01:00
16 lines
208 B
Go
16 lines
208 B
Go
|
//+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()
|
||
|
}
|