In [1]:
import sys
try:
input = raw_input
except NameError: #Python 3
pass
from hydroffice.ssp.atlases.woa09checker import Woa09Checker
if Woa09Checker.is_present():
print("WOA09 present")
sys.exit(0)
In [2]:
ans = input("download it (y/n)? ")
In [3]:
ans.lower()
if ans == "y" or ans == "yes":
print("downloading")
chk = Woa09Checker()
if chk.present:
print("downloaded")
else:
print("issues")
else:
print("exiting")