public static int Main(string[] args) { string [] cmd = Environment.GetCommandLineArgs(); PythonEngine.Initialize(); int i = Runtime.Py_Main(cmd.Length, cmd); PythonEngine.Shutdown(); return(i); }
public static int Main(string[] args) { // reference the static assemblyLoader to stop it being optimized away AssemblyLoader a = assemblyLoader; string[] cmd = Environment.GetCommandLineArgs(); PythonEngine.Initialize(); int i = Runtime.Py_Main(cmd.Length, cmd); PythonEngine.Shutdown(); return(i); }
public static int Main(string[] args) { // Only net40 is capable to safely inject python.runtime.dll into resources. #if NET40 // reference the static assemblyLoader to stop it being optimized away AssemblyLoader a = assemblyLoader; #endif string[] cmd = Environment.GetCommandLineArgs(); PythonEngine.Initialize(); int i = Runtime.Py_Main(cmd.Length, cmd); PythonEngine.Shutdown(); return(i); }