Commit 23c3af7c authored by Denis Bilenko's avatar Denis Bilenko

add test__execmodules.py

parent b2df0a2f
import os
import traceback
base = '../gevent'
modules = set()
for path, dirs, files in os.walk(base):
package = 'gevent' + path.replace(base, '').replace('/', '.')
modules.add((package, os.path.join(path, '__init__.py')))
for f in files:
module = None
if f.endswith('.py'):
module = f[:-3]
if module:
modules.add((package + '.' + module, os.path.join(path, f)))
for m, path in modules:
print m, path
try:
execfile(path)
except Exception:
traceback.print_exc()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment