fix hound

This commit is contained in:
Ondrej Samohel 2021-10-07 23:04:48 +02:00
parent 9f9caafb0d
commit 4276f34a30
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
2 changed files with 3 additions and 3 deletions

View file

@ -113,10 +113,12 @@ if not build_dir.exists():
_print("Probably freezing of code failed. Check ./build/build.log", 3)
sys.exit(1)
def _progress(_base, _names):
progress_bar.update()
return []
deps_dir = build_dir / "dependencies"
vendor_dir = build_dir / "vendor"
vendor_src = openpype_root / "vendor"

View file

@ -10,7 +10,6 @@ from pathlib import Path
import click
@click.command()
@click.argument("keys", nargs=-1, type=click.STRING)
def main(keys):
@ -19,7 +18,6 @@ def main(keys):
You can specify dot separated keys from `pyproject.toml`
as arguments and this script will return them on separate
lines. If key doesn't exists, None is returned.
"""
openpype_root = Path(os.path.dirname(__file__)).parent
@ -27,8 +25,8 @@ def main(keys):
for q in keys:
query = q.split(".")
data = py_project
for i, k in enumerate(query):
for k in query:
if isinstance(data, list):
try:
data = data[int(k)]