# Path: flumotion/common/log.py
# def init():


import os
import sys
from flumotion.common import bundle, errors, log, package
from flumotion.configure import configure
                if not os.path.exists(path):
                    self.warning("path %s for bundle %s does not exist",
                        path, name)
                else:
                    package.getPackager().registerPackagePath(path, name)
                ret.append((name, path))

            return ret

        # get sums for all bundles we need
        d = self.callRemote('getBundleSums', **kwargs)
        d.addCallback(getZips)
        d.addCallback(unpackAndRegister)
        return d

    def loadModule(self, moduleName):
        """
        Load the module given by name.
        Sets up all necessary bundles to be able to load the module.

        @rtype:   L{twisted.internet.defer.Deferred}
        @returns: a deferred that will fire when the given module is loaded,
                  giving the loaded module.
        """

        def gotBundles(bundles):
            self.debug('Got bundles %r', bundles)

            # load up the module and return it
            __import__(moduleName, globals(), locals(), [])

# Path: flumotion/common/log.py
# def init():


# Path: flumotion/common/bundleclient.py
import os
import sys
from flumotion.common import bundle, errors, log, package
from flumotion.configure import configure

                if not os.path.exists(path):
                    self.warning("path %s for bundle %s does not exist",
                        path, name)
                else:
                    package.getPackager().registerPackagePath(path, name)
                ret.append((name, path))

            return ret

        # get sums for all bundles we need
        d = self.callRemote('getBundleSums', **kwargs)
        d.addCallback(getZips)
        d.addCallback(unpackAndRegister)
        return d

    def loadModule(self, moduleName):
        """
        Load the module given by name.
        Sets up all necessary bundles to be able to load the module.

        @rtype:   L{twisted.internet.defer.Deferred}
        @returns: a deferred that will fire when the given module is loaded,
                  giving the loaded module.
        """

        def gotBundles(bundles):
            self.debug('Got bundles %r', bundles)

            # load up the module and return it
            __import__(moduleName, globals(), locals(), [])

            self.log('loaded module %s', moduleName)