def get_tox_env():
 parser = get_parser()
 args = parser.parse_args()
 if (args.tox_env is not None):
  tox_env = args.tox_env
 elif (TOX_ENV_VAR in os.environ):
  tox_env = os.environ[TOX_ENV_VAR]
 else:
  tox_env = get_tox_env_from_version()
 return tox_env

def get_tox_env ( ) : parser = get_parser ( ) args = parser . parse_args ( ) if ( args . tox_env is not None ) : tox_env = args . tox_env elif ( TOX_ENV_VAR in os . environ ) : tox_env = os . environ [ TOX_ENV_VAR ] else : tox_env = get_tox_env_from_version ( ) return tox_env
get the environment to be used with tox .