Re: [Python.NET] Setting PYTHONPATH from code

2011-02-27 Thread Benjamin Aranguren
On Wed, Feb 23, 2011 at 5:37 AM, Sharon Rozenblum < [email protected]> wrote: > Hi! > > > > Trying to do as you said: > > > > string script = "import sys\nsys.path.insert(0, '" + modulePath + > "')"; > > Have you tried using a semi colon instead of new line? str

[Python.NET] [Python.Net] AcquireLock deadlock while calling Python from C#

2011-01-12 Thread Benjamin Aranguren
@Julien I have been calling Python from C# without any problems even in a multi-threaded setup. I am using .Net 2.0 and Python 2.5. Main difference, at least from what I don't see in your code, is I also call BeginAllowThreads() after Initialize(). This allows me to initialize PythonEngine in a