[Python.NET] avoiding runtime error R6034

2015-02-20 Thread Cameron Hayne
olderPath) debugMsg(0, "excluding folder '%s' from PATH" % folderPath) os.environ['path'] = ';'.join([x for x in folderPaths if x not in toExclude]) # ——

[Python.NET] changes to Python.Runtime.Converter and Python.Runtime.Object

2015-03-25 Thread Cameron Hayne
Attr(binder.Name, pyValue); I would be interested in any comments about these changes - especially if there are better ways of fixing the problems. I am also interested to hear if anyone has other improvements to suggest. -- Cameron Hayne ca

[Python.NET] calling Python via Python.Runtime DLL from IronPython

2016-04-19 Thread Cameron Hayne
being found. This error seems to happen when calling PythonEngine.Initialize(). -- Cameron Hayne cameron.ha...@introspect.ca _ Python.NET mailing list - PythonDotNet@python.org https://mail.python.org/mailman/listinfo/pythondotnet

Re: [Python.NET] calling Python via Python.Runtime DLL from IronPython

2016-04-21 Thread Cameron Hayne
I tried calling Py_SetPythonHome("C:\\Python27") before calling PythonEngine.Initialize(), but I got the same problem (re ‘copy_reg’ not found). Any other suggestions? -- Cameron Hayne cameron.ha...@introspect.ca On Apr 19, 2016, at 4:37 PM, Tony Roberts wrote: > No need to

Re: [Python.NET] Embedding a Python interactive shell in a .NET application

2016-05-27 Thread Cameron Hayne
I’m using a similar method for redirecting Python output to a .NET textBox: #-- public static void redirectPythonOutput(TextWriter writer) { Output output = new Output(writer); using (Py.GIL())