[Zope-CVS] CVS: PythonNet/src/console - PythonConsole.cs:1.2

Brian Lloyd brian@zope.com
Mon, 28 Jul 2003 22:28:47 -0400


Update of /cvs-repository/PythonNet/src/console
In directory cvs.zope.org:/tmp/cvs-serv5111/src/console

Modified Files:
	PythonConsole.cs 
Log Message:
added indexer support, array support and preliminary thread primitives

=== PythonNet/src/console/PythonConsole.cs 1.1 => 1.2 ===
--- PythonNet/src/console/PythonConsole.cs:1.1	Mon Jul 14 15:59:49 2003
+++ PythonNet/src/console/PythonConsole.cs	Mon Jul 28 22:28:13 2003
@@ -9,14 +9,14 @@
 
 public class PythonConsole {
 
-    //    [STAThread]
     public static int Main(string[] args) {
 	string [] cmd = Environment.GetCommandLineArgs();
 
-	PythonInterpreter.Initialize();
+	PythonEngine.Initialize();
+	int i = Runtime.Py_Main(cmd.Length, cmd);
+	PythonEngine.Finalize();
 
-
-        return Runtime.Py_Main(cmd.Length, cmd);
+        return i;
     }
 
 }