virtualEnvironment/lib/python2.7/site-packages/coverage/config.py
def from_file(self, filename):
        """Read configuration from a .rc file.

        `filename` is a file name to read.

        """
        self.attempted_config_files.append(filename)

        cp = HandyConfigParser()
        files_read = cp.read(filename)
        if files_read is not None:  # return value changed in 2.4
            self.config_files.extend(files_read)

        for option_spec in self.CONFIG_FILE_OPTIONS:
            self.set_attr_from_config_option(cp, *option_spec)

        # [paths] is special
        if cp.has_section('paths'):
            for option in cp.options('paths'):
                self.paths[option] = cp.getlist('paths', option)
def from_file(self, filename):
        self.attempted_config_files.append(filename)

        cp = HandyConfigParser()
        files_read = cp.read(filename)
        if files_read is not None:  # return value changed in 2.4
            self.config_files.extend(files_read)

        for option_spec in self.CONFIG_FILE_OPTIONS:
            self.set_attr_from_config_option(cp, *option_spec)

        # [paths] is special
        if cp.has_section('paths'):
            for option in cp.options('paths'):
                self.paths[option] = cp.getlist('paths', option)
def from_file ( self , filename ) : self . attempted_config_files . append ( filename ) cp = HandyConfigParser ( ) files_read = cp . read ( filename ) if files_read is not None : # return value changed in 2.4 self . config_files . extend ( files_read ) for option_spec in self . CONFIG_FILE_OPTIONS : self . set_attr_from_config_option ( cp , * option_spec ) # [paths] is special if cp . has_section ( 'paths' ) : for option in cp . options ( 'paths' ) : self . paths [ option ] = cp . getlist ( 'paths' , option )
Read configuration from a .rc file.

        `filename` is a file name to read.
Read configuration from a . rc file .