From bf42148e0ef548a89eeb7f49889866a2c0dadea4 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 25 Nov 2003 21:34:39 +0000 Subject: [PATCH] * src/Utils.py (search_for): check for directory svn: r2379 --- gramps2/src/Utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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