diff options
author | Johan Dahlin <jdahlin@async.com.br> | 2002-11-28 14:52:40 +0000 |
---|---|---|
committer | Johan Dahlin <zilch@src.gnome.org> | 2002-11-28 14:52:40 +0000 |
commit | 328e88d0a959a2686c0e9e0fa1c49b50933392ba (patch) | |
tree | 212fd9648cef5e5ed2d76010a48e9c35e2a6e3e5 | |
parent | 54689c950f853e4da9bd048af193a19adb39b3b9 (diff) | |
download | pygobject-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.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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): |