MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / load_app

Function load_app

thirdparty/bottle/bottle.py:4005–4017  ·  view source on GitHub ↗

Load a bottle application from a module and make sure that the import does not affect the current default application, but returns a separate application object. See :func:`load` for the target parameter.

(target)

Source from the content-addressed store, hash-verified

4003
4004
4005def load_app(target):
4006 """ Load a bottle application from a module and make sure that the import
4007 does not affect the current default application, but returns a separate
4008 application object. See :func:`load` for the target parameter. """
4009 global NORUN
4010 NORUN, nr_old = True, NORUN
4011 tmp = default_app.push() # Create a new "default application"
4012 try:
4013 rv = load(target) # Import the target module
4014 return rv if callable(rv) else tmp
4015 finally:
4016 default_app.remove(tmp) # Remove the temporary added default application
4017 NORUN = nr_old
4018
4019
4020_debug = debug

Callers 1

runFunction · 0.85

Calls 4

loadFunction · 0.85
callableFunction · 0.85
pushMethod · 0.80
removeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…