def getModule(modulename, fromPath='tools.pythonpoint.styles'):
    """Get a module containing style declarations.

    Search order is:
        tools/pythonpoint/
        tools/pythonpoint/styles/
        ./
    """
    try:
        exec('from tools.pythonpoint import ' + modulename)
        return eval(modulename)
    except ImportError:
        try:
            exec('from tools.pythonpoint.styles import ' + modulename)
            return eval(modulename)
        except ImportError:
            exec('import ' + modulename)
            return eval(modulename)
