summaryrefslogtreecommitdiffstats
path: root/pygtk.py
diff options
context:
space:
mode:
authorJohan Dahlin <zilch@src.gnome.org>2002-11-28 14:55:23 +0000
committerJohan Dahlin <zilch@src.gnome.org>2002-11-28 14:55:23 +0000
commitbf32f7fe8aca2115aeca1b190d513f3465cd9bc7 (patch)
tree088088e2c7f5c9ea0463acd7cbfcf5fca496c163 /pygtk.py
parent1dc6d6585d3606e064ba32b2f18f1f5938657168 (diff)
downloadpygobject-bf32f7fe8aca2115aeca1b190d513f3465cd9bc7.tar.gz
pygobject-bf32f7fe8aca2115aeca1b190d513f3465cd9bc7.tar.xz
pygobject-bf32f7fe8aca2115aeca1b190d513f3465cd9bc7.zip
If the directory doesn't exist skip it. If not, it breaks when doing
* pygtk.py (_get_available_versions): If the directory doesn't exist skip it. If not, it breaks when doing os.listdir.
Diffstat (limited to 'pygtk.py')
-rw-r--r--pygtk.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pygtk.py b/pygtk.py
index 44304f5..c7ad1c2 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):