add an error message for creating a project without python2 or python3 compiled. Closes #311
This commit is contained in:
parent
cfc9dc1c29
commit
7b5e28d643
1 changed files with 7 additions and 0 deletions
|
@ -1334,6 +1334,13 @@ Xcode:
|
||||||
from cookiecutter.main import cookiecutter
|
from cookiecutter.main import cookiecutter
|
||||||
ctx = Context()
|
ctx = Context()
|
||||||
ensure_recipes_loaded(ctx)
|
ensure_recipes_loaded(ctx)
|
||||||
|
|
||||||
|
if not hasattr(ctx, "python_ver"):
|
||||||
|
print("ERROR: No python recipes compiled!")
|
||||||
|
print("ERROR: You must have compiled at least python2 or")
|
||||||
|
print("ERROR: python3 recipes to be able to create a project.")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
template_dir = join(curdir, "tools", "templates")
|
template_dir = join(curdir, "tools", "templates")
|
||||||
context = {
|
context = {
|
||||||
"title": args.name,
|
"title": args.name,
|
||||||
|
|
Loading…
Reference in a new issue