diff options
-rw-r--r-- | proxy.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -26,6 +26,8 @@ var playerNameChars = regexp.MustCompile("^[a-zA-Z0-9-_]+$") var proxyDir string var proxyDirOnce sync.Once +// Path prepends the directory the executable is in to the given path. +// It does not follow symlinks. func Path(path ...string) string { proxyDirOnce.Do(func() { executable, err := os.Executable() |