def METHOD_NAME(self, name, var):
    """ 
    Update environment (os.environ) and *set* (overwrite) a package path to var.
    """
    import os
    import sys
    if getExternalHome():
        path = self.getPackagePath2(name, var)
        if path:
            os.environ[var] = path
    return True