more debugging on replace

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-06-14 18:49:17 -07:00
parent 177e665244
commit 6bfa200482
1 changed files with 3 additions and 0 deletions

View File

@ -11,9 +11,12 @@ func Execname(filename string) string {
}
func Path(filename string) string {
log.Println("shell.Path() START filename =", filename)
if runtime.GOOS != "windows" {
log.Println("shell.Path() END filename =", filename)
return filename
}
filename = strings.Replace(filename, "/", "\\", -1)
log.Println("shell.Path() END filename =", filename)
return filename
}