Did I find the right examples for you? yes no

All Samples(7)  |  Call(4)  |  Derive(0)  |  Import(3)

        def import_object(class_path):
    components = class_path.split('.')
    module_path = '.'.join(components[:-1])
    mod = __import__(module_path, {}, {}, [])
    for comp in components[1:]:
        mod = getattr(mod, comp)
    return mod
        


src/j/u/july-0.9.2/july/app.py   july(Download)
import os.path
from tornado.web import Application, URLSpec
from july.template import JulyLoader
from tornado.wsgi import WSGIApplication
from .util import get_root_path, import_object, ObjectDict
    def register_app(self, app, url_prefix=''):
        if isinstance(app, str):
            app = import_object(app)
        if app.first_register():
            self._register_app_handlers(app, url_prefix)
 
                if isinstance(handler, str):
                    handler = import_object(handler)
 
                if len(spec) == 3:

src/j/u/july-HEAD/july/app.py   july(Download)
import os.path
from tornado.web import Application, URLSpec
from july.template import JulyLoader
from tornado.wsgi import WSGIApplication
from .util import get_root_path, import_object, ObjectDict
    def register_app(self, app, url_prefix=''):
        if isinstance(app, str):
            app = import_object(app)
        if app.first_register():
            self._register_app_handlers(app, url_prefix)
 
                if isinstance(handler, str):
                    handler = import_object(handler)
 
                if len(spec) == 3:

src/o/m/Omak-0.2.1/omak/__init__.py   Omak(Download)
from operator import *
from util import import_object, OmakException, IndexedList
from constants import klass