Changes between Version 91 and Version 92 of j2p
- Timestamp:
- 06/19/24 15:05:35 (5 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
j2p
v91 v92 220 220 If you want to translate an entire package, first create a separate source directory containing all the java code that you want to translate. Also make sure that your code is compiled (eg, using the build-helper-maven-plugin , check the pom files). Then you just do 221 221 {{{ 222 PyProgram program = PyProgram.fromDirector y(Paths.get("src/test/myprogram"));222 PyProgram program = PyProgram.fromDirectories(Arrays.asList(Paths.get("src/test/myprogram"))); 223 223 }}} 224 224 … … 228 228 The zip file is ready for a pip install (eg in your own virtual environment) or running from java through our PythonVenv. 229 229 230 ==== Resources 231 If you use the PyProgram translator, all non-java files are copied verbatim to the python program, to the same directory. Just make sure that if you have a separate resources directory, that you add that aswell to the list of root directories. 230 232 231 233 == Overriding the translation