Skip to content

Commit 889eb2c

Browse files
committed
Remove osext, adds Android support
kabukky#115
1 parent b65c4b7 commit 889eb2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

filenames/filenames.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import (
66
"path/filepath"
77
"strings"
88

9-
"github.com/kardianos/osext"
10-
119
"github.com/kabukky/journey/flags"
1210
)
1311

@@ -92,9 +90,11 @@ func determineAssetPath() string {
9290

9391
func determineExecutablePath() string {
9492
// Get the path this executable is located in
95-
executablePath, err := osext.ExecutableFolder()
93+
executablePath, err := os.Executable()
9694
if err != nil {
9795
log.Fatal("Error: Couldn't determine what directory this executable is in:", err)
9896
}
97+
executablePath = filepath.Clean(executablePath)
98+
executablePath = filepath.Dir(executablePath)
9999
return executablePath
100100
}

0 commit comments

Comments
 (0)