summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@async.com.br>2002-11-28 14:52:40 +0000
committerJohan Dahlin <zilch@src.gnome.org>2002-11-28 14:52:40 +0000
commit328e88d0a959a2686c0e9e0fa1c49b50933392ba (patch)
tree212fd9648cef5e5ed2d76010a48e9c35e2a6e3e5
parent54689c950f853e4da9bd048af193a19adb39b3b9 (diff)
downloadpygobject-328e88d0a959a2686c0e9e0fa1c49b50933392ba.tar.gz
If the directory doesn't exist skip it. If not, it breaks when doing
2002-11-28 Johan Dahlin <jdahlin@async.com.br> * pygtk.py (_get_available_versions): If the directory doesn't exist skip it. If not, it breaks when doing os.listdir.
-rw-r--r--pygtk.py1
1 files changed, 1 insertions, 0 deletions
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):