Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix when there is no 4th arg passed to build_isolated #2056

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CONTRIBUTORS
Expand Up @@ -9,6 +9,7 @@ Andrii Soldatenko
Andrzej Klajnert
Anthon van der Neuth
Anthony Sottile
Antoine Dechaume
Anudit Nagar
Ashley Whetter
Asmund Grammeltwedt
Expand Down
2 changes: 1 addition & 1 deletion src/tox/helper/build_isolated.py
Expand Up @@ -29,7 +29,7 @@ def _ensure_module_in_paths(module, paths):
dist_folder = sys.argv[1]
backend_spec = sys.argv[2]
backend_obj = sys.argv[3] if len(sys.argv) >= 4 else None
backend_paths = sys.argv[4].split(os.path.pathsep) if sys.argv[4] else []
backend_paths = sys.argv[4].split(os.path.pathsep) if (len(sys.argv) >= 5 and sys.argv[4]) else []

sys.path[:0] = backend_paths

Expand Down