Re: [Python.NET] Major speed change old 2.5 -> latest 2.5 build

2011-07-20 Thread Craig Farrow
d = The Preload flag is set to True in interactive mode. Its function is to load the entire namespace of the default assemblies into the interpreter's namespace (mostly for debugging). Please confirm that clr.setPreload(False) clears up your concern. Thank you -Barton On 07/03/2011 11:39 PM

[Python.NET] Major speed change old 2.5 -> latest 2.5 build

2011-07-15 Thread Craig Farrow
Hi, I'm accessing a database through a .NET DLL and I noticed that the initial open/load function is taking 20 times as long in Python.NET 2.6 as it is in my Python.NET 2.5. When I went to check on what 2.5 version I was using I found a newer one on sourceforge; well using pythonnet-2.0-alph

Re: [Python.NET] Issues with running a phyton script from c#

2009-08-17 Thread Craig Farrow
For running stand-alone python scripts you can rename your .py file to .pyw, which disables the console window when you run it. Does that achieve the same result from your C# code? Craig. 16/08/2009 4:05 p.m. dï, Mahi Haile pišdimiš: I am able to run a phyton script from C# using a code simil

Re: [Python.NET] System.IO.FileNotFoundException: Unable to find assembly 'MbtCom.dll'.

2009-04-14 Thread Craig Farrow
Try this: import sys sys.path.append("") import clr import System clr.AddReference("MbtCom") Craig. 14/04/2009 9:09 a.m. dï, kfadnis pišdimiš: Hi All, I know this is a very basic question, but despite all my efforts I haven't been able to load a third-party dll into python. I can find the

Re: [Python.NET] Where does the clr in IronPython look the dll

2008-12-12 Thread Craig Farrow
The dll needs to be on the Python path (sys.path). You can either add to the path with sys.path.append("c:\") or put your dll in a folder in the Python site-packages directory and add a .pth file (for Python.NET, but not IronPython -- it doesn't recognise the .pth files). Regards, Craig.

Re: [Python.NET] error messages

2008-09-30 Thread Craig Farrow
[] argv) bei Python.Runtime.PythonConsole.Main(String[] args) ---- *Von:* Craig Farrow [mailto:[EMAIL PROTECTED] *Gesendet:* Di 30.09.2008 14:53 *An:* Dirk Krause *Cc:* [email protected] *Betreff:* Re: [Python.NET] error messages Try the UCS2 di

Re: [Python.NET] error messages

2008-09-30 Thread Craig Farrow
Try the UCS2 directory. Craig. 9/30/2008 5:54 PM dï, Dirk Krause pišdimiš: Hi, I get the following error message when trying to run the python.exe from python2.5-UCS4 (I have a fully installed Python 2.5), any ideas? Vista professional here. ... unfortunately in german: """ Unbehandelt