environment/lib/python2.7/site-packages/nose_exclude.py
def configure(self, options, conf):
        """Configure plugin based on command line options"""
        super(NoseExclude, self).configure(options, conf)

        self.exclude_dirs = {}

        # preload directories from file
        if options.exclude_dir_file:
            if not options.exclude_dirs:
                options.exclude_dirs = []

            new_dirs = self._load_from_file(options.exclude_dir_file)
            options.exclude_dirs.extend(new_dirs)

        if not options.exclude_dirs:
            self.enabled = False
            return

        self.enabled = True
        root = os.getcwd()
        log.debug('cwd: %s' % root)

        # Normalize excluded directory names for lookup
        for exclude_param in options.exclude_dirs:
            # when using setup.cfg, you can specify only one 'exclude-dir'
            # separated by some character (new line is good enough)
            for d in exclude_param.split('\n'):
                d = d.strip()
                abs_d = self._force_to_abspath(d)
                if abs_d:
                    self.exclude_dirs[abs_d] = True

        exclude_str = "excluding dirs: %s" % ",".join(self.exclude_dirs.keys())
        log.debug(exclude_str)
def configure(self, options, conf):
        """Configure plugin based on command line options"""
        super(NoseExclude, self).configure(options, conf)

        self.exclude_dirs = {}

        # preload directories from file
        if options.exclude_dir_file:
            if not options.exclude_dirs:
                options.exclude_dirs = []

            new_dirs = self._load_from_file(options.exclude_dir_file)
            options.exclude_dirs.extend(new_dirs)

        if not options.exclude_dirs:
            self.enabled = False
            return

        self.enabled = True
        root = os.getcwd()
        log.debug('cwd: %s' % root)

        # Normalize excluded directory names for lookup
        for exclude_param in options.exclude_dirs:
            # when using setup.cfg, you can specify only one 'exclude-dir'
            # separated by some character (new line is good enough)
            for d in exclude_param.split('\n'):
                d = d.strip()
                abs_d = self._force_to_abspath(d)
                if abs_d:
                    self.exclude_dirs[abs_d] = True

        exclude_str = "excluding dirs: %s" % ",".join(self.exclude_dirs.keys())
        log.debug(exclude_str)
def configure ( self , options , conf ) : super ( NoseExclude , self ) . configure ( options , conf ) self . exclude_dirs = { } # preload directories from file if options . exclude_dir_file : if not options . exclude_dirs : options . exclude_dirs = [ ] new_dirs = self . _load_from_file ( options . exclude_dir_file ) options . exclude_dirs . extend ( new_dirs ) if not options . exclude_dirs : self . enabled = False return self . enabled = True root = os . getcwd ( ) log . debug ( 'cwd: %s' % root ) # Normalize excluded directory names for lookup for exclude_param in options . exclude_dirs : # when using setup.cfg, you can specify only one 'exclude-dir' # separated by some character (new line is good enough) for d in exclude_param . split ( '\n' ) : d = d . strip ( ) abs_d = self . _force_to_abspath ( d ) if abs_d : self . exclude_dirs [ abs_d ] = True exclude_str = "excluding dirs: %s" % "," . join ( self . exclude_dirs . keys ( ) ) log . debug ( exclude_str )
Configure plugin based on command line options
Configure plugin based on command line options