'åšäžäžª Python æä»¶äž­è¯»åéçœ®ã
:param filename: éçœ®æä»¶çæä»¶å
:return: åŠæè¯»åæåïŒè¿å ``True``ïŒåŠæå€±èŽ¥ïŒäŒæåºéè¯¯åŒåžž'

def from_pyfile(self, filename):

    d = imp.new_module('config')
    d.__file__ = filename
    with open(filename) as config_file:
        exec compile(config_file.read(), filename, 'exec') in d.__dict__
    self.from_object(d)
    return True
