diff options
author | Johan Dahlin <zilch@src.gnome.org> | 2002-11-28 14:55:23 +0000 |
---|---|---|
committer | Johan Dahlin <zilch@src.gnome.org> | 2002-11-28 14:55:23 +0000 |
commit | bf32f7fe8aca2115aeca1b190d513f3465cd9bc7 (patch) | |
tree | 088088e2c7f5c9ea0463acd7cbfcf5fca496c163 /pygtk.py | |
parent | 1dc6d6585d3606e064ba32b2f18f1f5938657168 (diff) | |
download | pygobject-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.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): |