(self, text)
Load configuration from text
Load configuration from text
Load configuration from text
def load_text_cfg(self, text):
        """Load configuration from text"""
        for line in text.splitlines():
            key = line.split("=")[0]
            val = line.split("=")[1]
            self.add_opt(key, val)
def load_text_cfg ( self , text ) : for line in text . splitlines ( ) : key = line . split ( "=" ) [ 0 ] val = line . split ( "=" ) [ 1 ] self . add_opt ( key , val )