blob: deea0956a30adf9019a2b14b9daa57ab32fa1d5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# vim: tabstop=4 shiftwidth=4 softtabstop=4
import sys
def import_module(module_name):
try:
__import__(module_name)
return sys.modules.get(module_name, None)
except ImportError as err:
raise RuntimeError('Could not load module %s: %s' % (module_name, err))
|