Changes between Version 91 and Version 92 of j2p


Ignore:
Timestamp:
06/19/24 15:05:35 (5 months ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • j2p

    v91 v92  
    220220If 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
    221221{{{
    222 PyProgram program = PyProgram.fromDirectory(Paths.get("src/test/myprogram"));
     222PyProgram program = PyProgram.fromDirectories(Arrays.asList(Paths.get("src/test/myprogram")));
    223223}}}
    224224
     
    228228The zip file is ready for a pip install (eg in your own virtual environment) or running from java through our PythonVenv.
    229229
     230==== Resources
     231If 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.
    230232
    231233== Overriding the translation