Add SIMPLE_BAR for other scripts
This commit is contained in:
parent
fb2d99e9e0
commit
da23122cca
@ -1,10 +1,19 @@
|
|||||||
from os import makedirs, path
|
from os import makedirs, path
|
||||||
|
|
||||||
from tqdm import tqdm
|
from tqdm import tqdm
|
||||||
|
import progressbar
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
from .io import is_remote_path, open_remote, path_exists_remote
|
from .io import is_remote_path, open_remote, path_exists_remote
|
||||||
|
|
||||||
|
SIMPLE_BAR = [
|
||||||
|
"Progress ",
|
||||||
|
progressbar.Bar(),
|
||||||
|
" ",
|
||||||
|
progressbar.Percentage(),
|
||||||
|
" completed",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
def maybe_download(archive_name, target_dir, archive_url):
|
def maybe_download(archive_name, target_dir, archive_url):
|
||||||
# If archive file does not exist, download it...
|
# If archive file does not exist, download it...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user