Esempio n. 1
0
	def __init__(self, show_progress_bar=True, verbose=True, callback=None, module_output=None):
		self.show_progress_bar = show_progress_bar
		self.verbose = verbose
		self.callback = callback
		self.module_output = module_output
		self.isatty = os.environ.get('TERM') != 'dumb' and sys.stdout.isatty()
		self.progress_bar = ProgressBar(self.isatty, title="Emaint", max_desc_length=27)
Esempio n. 2
0
 def __init__(self, show_progress_bar=True, verbose=True, callback=None):
     self.show_progress_bar = show_progress_bar
     self.verbose = verbose
     self.callback = callback
     self.isatty = os.environ.get("TERM") != "dumb" and sys.stdout.isatty()
     self.progress_bar = ProgressBar(
         self.isatty, title="Portage-Sync", max_desc_length=27
     )