def imp_env(xession): Execer(unload=False) xession.env = Env({"PATH": [], "PATHEXT": []}) yield XSH.unload()