Env variables set in same script that calls Dvi functions