Skip to content
Snippets Groups Projects
Commit 4b0eccba authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

ENH: Only look for executable until found

parent 8d927a90
No related branches found
No related tags found
No related merge requests found
......@@ -626,8 +626,9 @@ bool SystemTools::SameFile(const char* file1, const char* file2)
// return true if the file exists
bool SystemTools::FileExists(const char* filename)
{
struct stat fs;
if (stat(filename, &fs) != 0)
// struct stat fs;
// if (stat(filename, &fs) != 0)
if ( access(filename, F_OK) != 0 )
{
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment