   # for sending interrupts
   signal: (channel, data) ->
 
+  util: require './util'
 
 module.exports = core

_ = require 'lodash'

bus = require './bus'


getAxiomModules = (config) ->
  config or= {}

  load: (moduleName, module) ->
    {config} = module
    config or= {}
    services = law.create {
      services: module.services
      # We create a custom resolver for 'lib' dependencies which, within
      # a Law service, loads an NPM module relative to the project root.
      resolvers:
        lib: (name) ->
          requireName = path.join util.projRel('node_modules'), name
          return require(requireName)
    }

    contexts = {}

