(self, envlist)
return self
Extend Uenv environment with list of key=val if key non-existant
Extend Uenv environment with list of key=val if key non-existant
Extend Uenv environment with list of key = val if key non - existant
def extendif(self, envlist):
        """Extend Uenv environment with list of key=val if key non-existant"""
        if isinstance(envlist, (list)):
            for envstr in envlist:
                self.appendif(envstr)
        elif isinstance(envlist, (dict)):
            for key in envlist.keys():
                if key not in self.env:
                    self.env[key] = envlist[key]
        return self
def extendif ( self , envlist ) : if isinstance ( envlist , ( list ) ) : for envstr in envlist : self . appendif ( envstr ) elif isinstance ( envlist , ( dict ) ) : for key in envlist . keys ( ) : if key not in self . env : self . env [ key ] = envlist [ key ] return self