]> git.tdb.fi Git - libs/core.git/blobdiff - source/fs/dir.cpp
Change get_bin_dir logic to assume exe in cwd if not otherwise found
[libs/core.git] / source / fs / dir.cpp
index 0b6873277d4feb014d76df62afdde602d0679698..c0583cc5ca6fd9011065ed24d89e2d788e2cdcd8 100644 (file)
@@ -47,7 +47,8 @@ const Path &get_bin_dir(const string &argv0)
                                        break;
                                }
                }
                                        break;
                                }
                }
-               else
+
+               if(exe.empty())
                        exe = realpath(argv0);
 
                last_argv0 = argv0;
                        exe = realpath(argv0);
 
                last_argv0 = argv0;