We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85e76de commit 9b76ea9Copy full SHA for 9b76ea9
examples/test/__main__.py
@@ -8,7 +8,7 @@
8
from ..factoradic import test
9
from ..print_primes import test_prime_stream
10
11
-TS_DIR = Path(__file__).parent.parent.parent
+EXAMPLES_DIR = Path(__file__).parent.parent
12
13
test_prime_stream()
14
test()
@@ -18,11 +18,12 @@ def _get_nth_prime(num: int) -> int:
18
"""Run nth_prime.sh."""
19
return int(
20
run( # nosec
21
- ["./examples/nth_prime.sh", str(num)],
+ ["./nth_prime.sh", str(num)],
22
check=True,
23
stdout=PIPE,
24
shell=False,
25
- cwd=TS_DIR,
+ cwd=EXAMPLES_DIR,
26
+ env={"PYTHONPATH": EXAMPLES_DIR.parent},
27
).stdout
28
)
29
0 commit comments