import imp


def findModule(moduleName, finder=imp.find_module):
    """ Gets the absolute path of a module."""
    
    path = None
    for name in moduleName.split("."):
        y,path,z = finder(name, [path] if path else None)
    return path