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 b65c4b7 commit 889eb2cCopy full SHA for 889eb2c
filenames/filenames.go
@@ -6,8 +6,6 @@ import (
6
"path/filepath"
7
"strings"
8
9
- "github.com/kardianos/osext"
10
-
11
"github.com/kabukky/journey/flags"
12
)
13
@@ -92,9 +90,11 @@ func determineAssetPath() string {
92
90
93
91
func determineExecutablePath() string {
94
// Get the path this executable is located in
95
- executablePath, err := osext.ExecutableFolder()
+ executablePath, err := os.Executable()
96
if err != nil {
97
log.Fatal("Error: Couldn't determine what directory this executable is in:", err)
98
}
+ executablePath = filepath.Clean(executablePath)
+ executablePath = filepath.Dir(executablePath)
99
return executablePath
100
0 commit comments