fix path on windows
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
e39a2608e8
commit
8f8e8b677a
|
@ -51,7 +51,7 @@ func loadConfigFile() {
|
|||
filename = user.HomeDir + "/.config/cloud-control-panel.json"
|
||||
} else if runtime.GOOS == "windows" {
|
||||
log.Println("OS: Windows")
|
||||
filename = user.HomeDir + "/.config/cloud-control-panel.json"
|
||||
filename = user.HomeDir + "\\cloud-control-panel.json"
|
||||
} else {
|
||||
log.Println("OS: " + runtime.GOOS)
|
||||
filename = user.HomeDir + "/cloud-control-panel.json"
|
||||
|
@ -70,6 +70,7 @@ func loadConfigFile() {
|
|||
config.Filename = filename
|
||||
}
|
||||
|
||||
/* NEVER USE THIS
|
||||
func unmarshalConfig(a string) *pb.Config {
|
||||
var newpb *pb.Config
|
||||
log.Println("ATTEMTED TO UNMARSHAL string =", a)
|
||||
|
@ -78,6 +79,7 @@ func unmarshalConfig(a string) *pb.Config {
|
|||
spew.Dump(newpb)
|
||||
return newpb
|
||||
}
|
||||
*/
|
||||
|
||||
var customUsage = func() {
|
||||
fmt.Fprintf(flag.CommandLine.Output(), "Usage of %s:\n", os.Args[0])
|
||||
|
|
Loading…
Reference in New Issue