Files
cow/config_windows.go
2013-12-20 11:36:04 +08:00

22 lines
449 B
Go

package main
import (
"os"
"path"
)
const (
rcFname = "rc.txt"
alwaysBlockedFname = "blocked.txt"
alwaysDirectFname = "direct.txt"
statFname = "stat.txt"
newLine = "\r\n"
)
func initConfigDir() {
// On windows, put the configuration file in the same directory of cow executable
// This is not a reliable way to detect binary directory, but it works for double click and run
configPath.dir = path.Dir(os.Args[0])
}