code: def getenvar(self, envar):
          from os import getenv
          
          if getenv(envar) is not None:
              self._vardict[envar] = getenv(envar)
docs: Retrieves the value of an environment variable if it exists.