Re: [IronPython] PythonEngine bug

2005-12-02 Thread Stanislas Pinte
Hello, my apologies for the false warning: actually, engine.AddToPath(Environment.CurrentDirectory); will add the directory of the assembly we are running, not the current directory. I don't know if it is the expected behavior or not. Thanks, Stan. Quoting Stanislas Pinte <[EMAIL PROTECTE

[IronPython] PythonEngine bug

2005-12-02 Thread Stanislas Pinte
hello, I am having problems importing modules in the PythonEngine: PythonEngine engine = new PythonEngine(); engine.AddToPath(Environment.CurrentDirectory); engine.Import("hop"); Function inc = engine.Evaluate("hop.increment") as Function; whith hop.py being in the current directory, I get: 1)