comparison pyloader/loader.py @ 3:65d9a7c7ac63

other misc improvements
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 10 May 2011 10:26:19 -0700
parents 6cb7696edc4d
children 58eed691dca7
comparison
equal deleted inserted replaced
2:6cb7696edc4d 3:65d9a7c7ac63
5 """ 5 """
6 6
7 import imp 7 import imp
8 import os 8 import os
9 import sys 9 import sys
10
11 __all__ = ['import_dotted_path', 'load']
10 12
11 def import_dotted_path(module): 13 def import_dotted_path(module):
12 path = module.split('.') 14 path = module.split('.')
13 module = __import__(module) 15 module = __import__(module)
14 for name in path[1:]: 16 for name in path[1:]: