Calling below function resulting thread launch from C# process or it is new
process itself.

Runtime.Py_Main(cmd.Length, cmd)

I am referring console example for nPython.exe. Below is code snippet.

public static int Main(string[] args)


            // reference the static assemblyLoader to stop it being
optimized away

            AssemblyLoader a = assemblyLoader;

            string[] cmd = Environment.GetCommandLineArgs();


            int i = Runtime.Py_Main(cmd.Length, cmd);


            return i;


Python.NET mailing list -

Reply via email to