def open_resource(self, plugin, filename):
        mod = self.load_plugin(plugin)
        fn = getattr(mod, '__file__', None)
        if fn is not None:
            if fn.endswith(('.pyc', '.pyo')):
                fn = fn[:-1]
            if os.path.isfile(fn):
                return open(os.path.join(os.path.dirname(fn), filename), 'rb')
        buf = pkgutil.get_data(self.mod.__name__ + '.' + plugin, filename)
        if buf is None:
            raise IOError(errno.ENOEXITS, 'Could not find resource')
        return NativeBytesIO(buf)
Checks if an opcode has dependencies and if so, processes them.
dataset/ETHPy150Open dragondjf/PFramer/util/pluginbase.py/PluginSource.open_resource--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/jqueue/__init__.py/_JobProcessor._CheckDependencies