By default, Maya first searches for the
Maya.env file in your MAYA_APP_DIR/<MayaVersion> location. If you want to override this behavior so that
Maya.env is always read from a location of your choice, do as follows:
Save your
Maya.env file in the location you want.
Use system commands to set the MAYA_ENV_DIR environment variable to this location.