mirror of https://github.com/explosion/spaCy.git
fix
This commit is contained in:
parent
0f55e51704
commit
58568bd0cd
|
@ -14,7 +14,7 @@ def test_build_dependencies(en_vocab):
|
||||||
# when running tests locally, the file is 3 levels up. On the CI, it's 2 levels up.
|
# when running tests locally, the file is 3 levels up. On the CI, it's 2 levels up.
|
||||||
roots = [Path(__file__).parent.parent, Path(__file__).parent.parent.parent] # or whatever
|
roots = [Path(__file__).parent.parent, Path(__file__).parent.parent.parent] # or whatever
|
||||||
for r in roots:
|
for r in roots:
|
||||||
req_file = root_dir / "requirements.txt"
|
req_file = r / "requirements.txt"
|
||||||
if req_file.exists():
|
if req_file.exists():
|
||||||
root_dir = r
|
root_dir = r
|
||||||
with req_file.open() as f:
|
with req_file.open() as f:
|
||||||
|
|
Loading…
Reference in New Issue