modpython: Show (module/__init__.py) in listavailmods

This commit is contained in:
Kyle Fuller committed 2011-09-05 17:38:37 +00:00
1 parent 9e95d1c3e1
commit 12d1a5a422
2 files changed
+12 -21

No files matched your search

+2 -1
View File
@@ -556,7 +556,8 @@ def get_mod_info_path(path, modname, modinfo):
except ImportError:
return 0
finally:
x[0].close()
if x[0]:
x[0].close()
if modname not in pymodule.__dict__:
return 0
cl = pymodule.__dict__[modname]