Class python

java.lang.Object
org.bytedeco.cpython.python

@Properties(inherit=python.class,value={@Platform(executable="python3.13"),@Platform(value="macosx",executable="python3.13"),@Platform(value="windows",executable="python")}) public class python extends Object
With this class, we can extract easily the python program ready for execution. For example, we can print the module search path from Java in a portable fashion this way:

     String python = Loader.load(org.bytedeco.cpython.python.class);
     ProcessBuilder pb = new ProcessBuilder(python, "-m", "site");
     pb.inheritIO().start().waitFor();
 
Author:
Samuel Audet
  • Constructor Details

    • python

      public python()