summaryrefslogtreecommitdiff
path: root/windowsWrapper.go
blob: c9fafcf4ffc476159f3e99e05839a647f255ee53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package shell

import "runtime"
import "strings"

func Execname(filename string) string {
	if runtime.GOOS != "windows" {
		return filename
	}
	return Path(filename) + ".exe"
}

func Path(filename string) string {
	if runtime.GOOS != "windows" {
		return filename
	}
	filename = strings.Replace(filename, "/", "\\", -1)
	return filename
}