diff --git a/gramps2/src/Utils.py b/gramps2/src/Utils.py index ba5ec7be0..b2a1d5e7f 100644 --- a/gramps2/src/Utils.py +++ b/gramps2/src/Utils.py @@ -590,7 +590,7 @@ def gformat(val): def search_for(name): for i in os.environ['PATH'].split(':'): fname = os.path.join(i,name) - if os.access(fname,os.X_OK): + if os.access(fname,os.X_OK) and not os.path.isdir(fname): return 1 return 0