def __init__(self, g_pool, menu_conf={ 'pos': (320, 310), 'size': (300, 150), 'collapsed': False }): super(Batch_Exporter, self).__init__(g_pool) # initialize empty menu # and load menu configuration of last session self.menu = None self.menu_conf = menu_conf self.exports = [] self.new_exports = [] self.active_exports = [] default_path = os.path.expanduser('~/') self.destination_dir = default_path self.source_dir = default_path self.run = False self.workers = [None for x in range(cpu_count())] logger.info( "Using a maximum of %s CPUs to process visualizations in parallel..." % cpu_count())
def __init__(self, g_pool): super(Batch_Exporter, self).__init__(g_pool) # initialize empty menu # and load menu configuration of last session self.menu = None self.exports = [] self.new_exports = [] self.active_exports = [] default_path = os.path.expanduser('~/') self.destination_dir = default_path self.source_dir = default_path self.run = False self.workers = [None for x in range(cpu_count())] logger.info("Using a maximum of %s CPUs to process visualizations in parallel..." %cpu_count())