We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1acfc46 commit 1d2a4b7Copy full SHA for 1d2a4b7
tools/tools.go
@@ -6,6 +6,7 @@ import (
6
"os"
7
"os/user"
8
"path"
9
+ "path/filepath"
10
"strings"
11
12
log "github.com/Sirupsen/logrus"
@@ -62,7 +63,7 @@ func (t *Tools) GetLocation(command string) (string, error) {
62
63
}
64
65
- return location, nil
66
+ return filepath.ToSlash(location), nil
67
68
69
func (t *Tools) writeMap() error {
@@ -85,7 +86,7 @@ func (t *Tools) readMap() error {
85
86
87
func dir() string {
88
usr, _ := user.Current()
- return usr.HomeDir + "/.arduino-create"
89
+ return path.Join(usr.HomeDir, ".arduino-create")
90
91
92
// createDir creates the directory where the tools will be stored
0 commit comments