'Return a dict of environment settings.
If we couldn\'t find the JSON file, issue a warning and return an empty dict.'

@lazy
def env_tokens(self):

    if self.SERVICE_VARIANT:
        env_path = (self.REPO_ROOT.parent / '{service}.env.json'.format(service=self.SERVICE_VARIANT))
    else:
        env_path = path('env.json').abspath()
    if (not env_path.isfile()):
        env_path = (env_path.parent.parent / env_path.basename())
    if (not env_path.isfile()):
        print("Warning:    could    not    find    environment    JSON    file    at    '{path}'".format(path=env_path), file=sys.stderr)
        return dict()
    try:
        with open(env_path) as env_file:
            return json.load(env_file)
    except ValueError:
        print('Error:    Could    not    parse    JSON    in    {path}'.format(path=env_path), file=sys.stderr)
        sys.exit(1)
