When i say it worked brilliantly, what i meant was it compiled lol. the
executable runs, but does obviously not run my python file. I really could
do with a link to a recent article on this method, is there any? i have
googled with no luck.
googen wrote:
>
> Thanks very much, worked brilliantly :)
>
>
>
> Sylvain Hellegouarch wrote:
>>
>> If you are using IP2 you should go with:
>>
>> PythonEngine _engine = PythonEngine.CurrentEngine;
>>
>> - Sylvain
>>
>> googen a écrit :
>>> Hello, I am trying to run a python script via a VC# project, purely to
>>> create
>>> an exe for my application. But I am having a problem
>>> building every example I have found. It does not help that I have no
>>> idea
>>> about C#. Any help would be greatly appreciated, as I would love to
>>> have an exe to pass to my friends with my application, and a google on
>>> this
>>> shows nothing. The code I tryed last is
>>>
>>> using System;
>>> using System.Collections;
>>> using System.Collections.Generic;
>>> using System.IO;
>>> using IronPython.Hosting;
>>> using IronPython.Runtime;
>>>
>>> namespace Payper
>>> {
>>> class Class1
>>> {
>>> static IronPython.Hosting.PythonEngine Py;
>>>
>>> [STAThread]
>>> static void Main(String[] rawArgs)
>>> {
>>> Py = new PythonEngine();
>>> Py.AddToPath(Environment.CurrentDirectory);
>>> Py.ExecuteFile("Payper.py");
>>> }
>>> }
>>> }
>>>
>>> When I try to build this, or any other example I have followed I get the
>>> following error...
>>>
>>> The type 'IronPython.Hosting.PythonEngine' has no constructors defined
>>>
>>> So what am i missing?, or does anybody know another way of creating an
>>> exe
>>> from ironpython?
>>>
>>> Thanks in advance
>>>
>>> googen.
>>>
>>
>> _______________________________________________
>> users mailing list
>> [email protected]
>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/PythonEngine-no-constructors-defined-tf4071594.html#a11596644
Sent from the IronPython mailing list archive at Nabble.com.
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com