any-sync/etc/path.go
2022-08-21 16:44:05 +02:00

16 lines
164 B
Go

package etc
import (
"path/filepath"
"runtime"
)
var (
_, b, _, _ = runtime.Caller(0)
basepath = filepath.Dir(b)
)
func Path() string {
return basepath
}