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.
arangod
1 parent 887a7a0 commit d7a2ef8Copy full SHA for d7a2ef8
main.go
@@ -281,6 +281,13 @@ func findExecutable() {
281
"/usr/sbin/arangod",
282
)
283
}
284
+ // Add local folder to search path
285
+ if exePath, err := os.Executable(); err == nil {
286
+ folder := filepath.Dir(exePath)
287
+ pathList = append(pathList, filepath.Join(folder, "arangod"+filepath.Ext(exePath)))
288
+ }
289
+
290
+ // Search to search path for the first path that exists.
291
for _, p := range pathList {
292
if _, e := os.Stat(filepath.Clean(filepath.FromSlash(p))); e == nil || !os.IsNotExist(e) {
293
arangodPath, _ = filepath.Abs(filepath.FromSlash(p))
0 commit comments