GeezerVison is showing github.com — Better manual PYTHONPATH for tests. · iuliux/java2python@90fbe83
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/tests.md +3-3Lines changed: 3 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -41,9 +41,9 @@ Notice that there isn't a suffix to the file name; you don't run `make |
41 | 41 | Class02.java`, just `make Class02`. If you supply an extension, nothing will |
42 | 42 | happen and the test won't run. |
43 | 43 |
|
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: |
47 | 47 |
|
48 | 48 | ```bash |
49 | 49 | $ ./runjava Class01.java |
|
Collapse file
Copy file name to clipboardExpand all lines: test/Makefile +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ j2py = ../bin/j2py |
7 | 7 | python_files := $(addsuffix .py, $(notdir $(basename $(wildcard *.java)))) |
8 | 8 | test_targets := $(sort $(notdir $(basename $(wildcard *.java)))) |
9 | 9 |
|
10 | | -export PYTHONPATH := $(PYTHONPATH):. |
| 10 | +export PYTHONPATH := $(PYTHONPATH):.:.. |
11 | 11 |
|
12 | 12 |
|
13 | 13 | .PHONY: all clean |
|