Make installation print data path.

This commit is contained in:
Matthew Honnibal 2016-10-23 19:46:44 +02:00
parent e7414cd064
commit fefde8aef8
1 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,7 @@ from sputnik.package_list import (PackageNotFoundException,
CompatiblePackageNotFoundException)
from . import about
from . import util
def download(lang, force=False, fail_on_exist=True):
@ -34,4 +35,5 @@ def download(lang, force=False, fail_on_exist=True):
"spacy.%s.download --force'." % lang, file=sys.stderr)
sys.exit(1)
print("Model successfully installed.", file=sys.stderr)
data_path = util.get_data_path()
print("Model successfully installed to %s" % data_path, file=sys.stderr)