[Zope-CVS] CVS: PythonNet/console - PythonConsole.cs:1.1 makefile:1.1
Brian Lloyd
brian@zope.com
Mon, 17 Feb 2003 22:44:35 -0500
Update of /cvs-repository/PythonNet/console
In directory cvs.zope.org:/tmp/cvs-serv5356/console
Added Files:
PythonConsole.cs makefile
Log Message:
initial commit
=== Added File PythonNet/console/PythonConsole.cs ===
// PythonConsole.cs - A temporary python.exe wrapper (until we have worked
// out bootstrapping options).
//
// Author: Brian Lloyd <brian@zope.com>
using System;
using Python.Runtime;
public class PythonConsole {
// [STAThread]
public static int Main(string[] args) {
string [] cmd = Environment.GetCommandLineArgs();
PythonInterpreter.Initialize();
return Runtime.Py_Main(cmd.Length, cmd);
}
}
=== Added File PythonNet/console/makefile ===
# Makefile
CSC=csc.exe
all: python.exe
python.exe:
$(CSC) /nologo /target:exe /out:../python.exe \
/reference:../Python.Runtime.dll /recurse:*.cs
clean:
rm -f ../python.exe