'Serves a directory of static content.
www_path is the prefix of the URL that maps to this directory.
local_path is the directory to serve content from.  If it\'s not
specified, it is assume to be a directory with the same name as
www_path.
relative, if True, means that the local path is to be a sibling
of the calling module.
For an example, see the launch() function in this module.'

def add_static_dir(self, www_path, local_path=None, relative=False):

    if (not www_path.startswith('/')):
        www_path = ('/' + www_path)
    if (local_path is None):
        local_path = www_path[1:]
        if relative:
            local_path = os.path.basename(local_path)
    if relative:
        import inspect
        path = inspect.stack()[1][1]
        path = os.path.dirname(path)
        local_path = os.path.join(path, local_path)
    local_path = os.path.abspath(local_path)
    log.debug('Serving    %s    at    %s', local_path, www_path)
    self.set_handler(www_path, StaticContentHandler, {'root': local_path}, True)
