def load_support_plugin(name):
<EOL>stack = list(filter(lambda f: f[<NUM_LIT:3>] == "<STR_LIT>", inspect.stack()))<EOL>prev_frame = stack[<NUM_LIT:0>]<EOL>path = os.path.dirname(prev_frame[<NUM_LIT:1>])<EOL>if not os.path.isabs(path):<EOL><INDENT>prefix = os.path.normpath(__file__ + "<STR_LIT>")<EOL>path = os.path.join(prefix, path)<EOL><DEDENT>return load_module(name, path)<EOL>
Loads a plugin from the same directory as the calling plugin.

    The path used is extracted from the last call in module scope,
    therefore this must be called only from module level in the
    originating plugin or the correct plugin path will not be found.