code: def setenv(self, variable, value):
      '''set an environment variable for Singularity
      
         Parameters
         ==========
         variable: the variable to set
         value: the value to set
      '''
      os.environ[variable] = value
      os.putenv(variable, value)
      bot.debug('%s set to %s' % (variable, value)f setenv(self, variable, value):
      '''set an environment variable for Singularity
      
         Parameters
         ==========
         variable: the variable to set
         value: the value to set
      '''
      os.environ[variable] = value
      os.putenv(variable, value)
      bot.debug('%s set to %s' % (variable, value))
docs: set an environment variable for Singularity
      
         Parameters
         ==========
         variable: the variable to set
         value: the value to set