gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gzz-commits] gzz ./Makefile gzz/control/Main.java


From: Tuomas Lukka
Subject: Re: [Gzz-commits] gzz ./Makefile gzz/control/Main.java
Date: Tue, 27 Aug 2002 07:24:14 +0300
User-agent: Mutt/1.4i

Kröhöööm... javadoc??

        Tuomas

> diff -c gzz/gzz/control/Main.java:1.2 gzz/gzz/control/Main.java:1.3
> *** gzz/gzz/control/Main.java:1.2     Mon Aug 26 14:02:26 2002
> --- gzz/gzz/control/Main.java Mon Aug 26 15:07:15 2002
> ***************
> *** 5,15 ****
>   import org.python.core.*; 
>   
>   public class Main {
> !     public static void main(String[] args) throws PyException {
> !             System.setProperty("python.path", "gzigzag.jar");
> !             System.out.println(args[0].toString());
> !             PythonInterpreter.initialize(System.getProperties(), null, 
> args);
> !             PythonInterpreter interp = new PythonInterpreter();
> !             interp.exec("import Gzz");
> !     }
>   }
> --- 5,18 ----
>   import org.python.core.*; 
>   
>   public class Main {
> !     public static void main(String[] args) throws PyException {
> !     String[] pyargs = new String[args.length+1];
> !     System.arraycopy(args, 0, pyargs, 1, args.length);
> !     pyargs[0] = "Gzz.py";
> !     System.setProperty("python.path", 
> !                        System.getProperty("java.class.path"));
> !     PythonInterpreter.initialize(System.getProperties(), null, pyargs);
> !     PythonInterpreter interp = new PythonInterpreter();
> !     interp.exec("import Gzz");
> !     }
>   }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]