pre-downloading electron files during bauh initialization

This commit is contained in:
Vinícius Moreira
2019-12-10 16:26:47 -03:00
parent 7a97ef8531
commit d4c8d67433
4 changed files with 82 additions and 8 deletions

View File

@@ -65,7 +65,7 @@ class AdaptableFileDownloader(FileDownloader):
self.logger.info('Removing downloaded file {}'.format(to_delete))
os.remove(to_delete)
def download(self, file_url: str, watcher: ProcessWatcher, output_path: str, cwd: str) -> bool:
def download(self, file_url: str, watcher: ProcessWatcher, output_path: str = None, cwd: str = None) -> bool:
self.logger.info('Downloading {}'.format(file_url))
handler = ProcessHandler(watcher)
file_name = file_url.split('/')[-1]