modpython: Show (module/__init__.py) in listavailmods
This commit is contained in:
1 parent
9e95d1c3e1
commit
12d1a5a422
2 files changed
+12
-21
No files matched your search
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user