From 328e88d0a959a2686c0e9e0fa1c49b50933392ba Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Thu, 28 Nov 2002 14:52:40 +0000 Subject: If the directory doesn't exist skip it. If not, it breaks when doing 2002-11-28 Johan Dahlin * pygtk.py (_get_available_versions): If the directory doesn't exist skip it. If not, it breaks when doing os.listdir. --- pygtk.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pygtk.py b/pygtk.py index 44304f5d..c7ad1c20 100644 --- a/pygtk.py +++ b/pygtk.py @@ -29,6 +29,7 @@ def _get_available_versions(): versions = {} for dir in sys.path: if not dir: dir = os.getcwd() + if not os.path.exists(dir): continue if _pygtk_dir_pat.match(os.path.basename(dir)): continue # if the dir is a pygtk dir, skip it for filename in os.listdir(dir): -- cgit v1.2.1