forked from ursgal/ursgal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_resources.py
More file actions
36 lines (30 loc) · 857 Bytes
/
install_resources.py
File metadata and controls
36 lines (30 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env python3.4
# encoding: utf-8
import ursgal
def main():
'''
Download all resources from our webpage
'''
uc = ursgal.UController()
downloaded_zips = uc.download_resources(
http_url_root = 'http://www.uni-muenster.de/Biologie.IBBP.AGFufezan/'
)
print()
if len(downloaded_zips) == 0:
print('[ INFO ] No engines were downloaded, all should be available')
else:
print(
'[ INFO ] Downloaded and installed {0} engine(s)'.format(
len( downloaded_zips )
)
)
for engine, zip_file in downloaded_zips:
print(
'[ INFO ] Engine: {0} has been installed from {1}'.format(
engine,
zip_file
)
)
return
if __name__ == '__main__':
main()