[Python.NET] Pythonnet for Python2.7 binary distribution?

2011-02-28 Thread Olof Bjarnason
Hi Python.NET (is that the correct spelling..?) community! I learned of Python.NET today. I love the idea of being able to use the .NET assemblies/types directly from CPython. I've tried IronPython before, but it just does not feel Python enough for me :) But I failed to play with Python.NET toni

Re: [Python.NET] Setting PYTHONPATH from code

2011-02-28 Thread Sharon Rozenblum
Hi! Checked again and found that I had in the end of the module path string the char:"\". After deleting it - it works for me as oleksii.bidiuk said: string script = "import sys\nsys.path.insert(0, '" + + "')"); IntPtr pythonLock = AcquireLock(); RunSimpleString(script); ReleaseLock(pythonLoc

Re: [Python.NET] Setting PYTHONPATH from code

2011-02-28 Thread Sharon Rozenblum
Hi! Tried after your mail. Does not change... Regarding the PYTHONPATH: I change it with code (System.Environment.SetEnvironmentVariable("PYTHONPATH",PathValue)) and it does not help me at the first run of the application. (I am getting Null value from the ImportModule) But, after closing t