def __init__(self, config): self.config = config mkdir(self.config.tgt_dir) self.sphinx_opts = '-j 4' if config.build['warning_is_error'].lower() == 'true': self.sphinx_opts += ' -W' self.done = {} self._colab = colab.Colab(config) self._sagemaker = sagemaker.Sagemaker(config)
def colab(self): _colab = colab.Colab(self.config) if not _colab.valid(): return def _run(): repo = _colab.git_repo(self.config.tab) bash_fname = os.path.join(os.path.dirname(__file__), 'upload_github.sh') run_cmd(['bash', bash_fname, self.config.colab_dir, repo]) tab = self.config.tab self.config.set_tab('all') self.config.iter_tab(_run) self.config.set_tab(tab)