Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 90fbe83

Browse files
author
Troy Melhase
committed
Better manual PYTHONPATH for tests.
1 parent 940a4ff commit 90fbe83

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/tests.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ Notice that there isn't a suffix to the file name; you don't run `make
4141
Class02.java`, just `make Class02`. If you supply an extension, nothing will
4242
happen and the test won't run.
4343

44-
The `test` directory contains two helper scripts used by the makefile that you
45-
can also use during development. The first is [runjava][], which runs the
46-
Java compiler and the Java VM with the indicated file. Use it like this:
44+
The `test` directory contains two helper scripts that you can use during
45+
development. The first is [runjava][], which runs the Java compiler and the
46+
Java VM with the indicated file. Use it like this:
4747

4848
```bash
4949
$ ./runjava Class01.java

test/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ j2py = ../bin/j2py
77
python_files := $(addsuffix .py, $(notdir $(basename $(wildcard *.java))))
88
test_targets := $(sort $(notdir $(basename $(wildcard *.java))))
99

10-
export PYTHONPATH := $(PYTHONPATH):.
10+
export PYTHONPATH := $(PYTHONPATH):.:..
1111

1212

1313
.PHONY: all clean

0 commit comments

Comments
 (0)