/[gzz]/gzz/gzz/control/Main.java
ViewVC logotype

Diff of /gzz/gzz/control/Main.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by tuukkah, Mon Aug 26 18:02:26 2002 UTC revision 1.3 by tuukkah, Mon Aug 26 19:07:15 2002 UTC
# Line 5  import org.python.util.PythonInterpreter Line 5  import org.python.util.PythonInterpreter
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  }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26