'Constructor.'

def __init__(self, path=None, profile=None):

    if (profile is None):
        profile = MH_PROFILE
    self.profile = os.path.expanduser(profile)
    if (path is None):
        path = self.getprofile('Path')
    if (not path):
        path = PATH
    if ((not os.path.isabs(path)) and (path[0] != '~')):
        path = os.path.join('~', path)
    path = os.path.expanduser(path)
    if (not os.path.isdir(path)):
        raise Error, 'MH()    path    not    found'
    self.path = path
    return
