14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28
28
_real_import = __import__
30
def _custom_import(name, globals, locals, fromlist):
30
def timed_import(name, globals, locals, fromlist):
31
31
"""Wrap around standard importer to log import time"""
33
33
return _real_import(name, globals, locals, fromlist)
35
35
scope_name = globals.get('__name__', None)