def METHOD_NAME(self,path,append=False):
    assert os.path.exists(path), \
            "Can not add path: %s to MODULEPATH does not exist" % (path)
    if append:
        arguments='--append' + ' ' + path
    else:
        arguments=path
    self.modulecmd('use',arguments)