def finalize_options(self): """finalize options""" clean_path = os.path.normcase default_output = '%s.css' self.ensure_string('output', default_output) self.output = clean_path(self.output) self.ensure_string_list('sources') if self.sources: self.sources = remove_duplicates(clean_path(path) for path in self._files_list(self.sources)) self.ensure_string_list('loadpaths') if self.loadpaths: self.loadpaths = remove_duplicates(clean_path(path) for path in self._files_list(self.loadpaths) if os.path.isdir(clean_path(path)) and not clean_path(path) is None )
def finalize_options(self): """finalize options""" clean_path = os.path.normcase default_output = 'min.%s' % self.minification_type self.ensure_string('output', default_output) self.output = clean_path(self.output) self.ensure_string_list('sources') if self.sources: self.sources = remove_duplicates(clean_path(path) for path in self._files_list(self.sources))