MCPcopy Index your code
hub / github.com/spicetify/cli / GetExecutableDir

Function GetExecutableDir

src/utils/utils.go:274–287  ·  view source on GitHub ↗

GetExecutableDir returns directory of current process

()

Source from the content-addressed store, hash-verified

272
273// GetExecutableDir returns directory of current process
274func GetExecutableDir() string {
275 exe, err := os.Executable()
276 if err != nil {
277 log.Fatal(err)
278 }
279
280 exeDir := filepath.Dir(exe)
281
282 if link, err := filepath.EvalSymlinks(exe); err == nil {
283 return filepath.Dir(link)
284 }
285
286 return exeDir
287}
288
289// GetJsHelperDir returns jsHelper directory in executable directory
290func GetJsHelperDir() string {

Callers 10

mainFunction · 0.92
ThemeAssetPathFunction · 0.92
ExtensionPathFunction · 0.92
AppPathFunction · 0.92
getThemeFolderFunction · 0.92
UpdateFunction · 0.92
readLocalCssMapFunction · 0.92
GetJsHelperDirFunction · 0.85
GetCustomAppPathFunction · 0.85
GetExtensionPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected