mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 02:06:31 +03:00
Add note about --force flag to error message
This commit is contained in:
parent
e3de035814
commit
a3ddbc0444
|
@ -60,7 +60,8 @@ def create_dirs(package_path, force):
|
||||||
shutil.rmtree(unicode_(package_path))
|
shutil.rmtree(unicode_(package_path))
|
||||||
else:
|
else:
|
||||||
util.sys_exit(unicode_(package_path),
|
util.sys_exit(unicode_(package_path),
|
||||||
"Please delete the directory and try again.",
|
"Please delete the directory and try again, or use the --force "
|
||||||
|
"flag to overwrite existing directories.",
|
||||||
title="Package directory already exists")
|
title="Package directory already exists")
|
||||||
Path.mkdir(package_path, parents=True)
|
Path.mkdir(package_path, parents=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user