5 |
import org.python.core.*; |
import org.python.core.*; |
6 |
|
|
7 |
public class Main { |
public class Main { |
8 |
public static void main(String[] args) throws PyException { |
public static void main(String[] args) throws PyException { |
9 |
System.setProperty("python.path", "gzigzag.jar"); |
String[] pyargs = new String[args.length+1]; |
10 |
System.out.println(args[0].toString()); |
System.arraycopy(args, 0, pyargs, 1, args.length); |
11 |
PythonInterpreter.initialize(System.getProperties(), null, args); |
pyargs[0] = "Gzz.py"; |
12 |
PythonInterpreter interp = new PythonInterpreter(); |
System.setProperty("python.path", |
13 |
interp.exec("import Gzz"); |
System.getProperty("java.class.path")); |
14 |
} |
PythonInterpreter.initialize(System.getProperties(), null, pyargs); |
15 |
|
PythonInterpreter interp = new PythonInterpreter(); |
16 |
|
interp.exec("import Gzz"); |
17 |
|
} |
18 |
} |
} |