Re: [IronPython] What PythonEngine called my C# code? (was: custom ConfigurationSection in IronPython)

2006-10-05 Thread J. Merrill
Can you use the .Net stack trace mechanisms to look back up the call stack? I would think that you could, but I don't know how you'd necessarily get the value of the PythonEngine that you find. Could you have a static constructor in your C# assemblies that does the right thing? Such code is

Re: [IronPython] What PythonEngine called my C# code? (was: custom ConfigurationSection in IronPython)

2006-09-20 Thread Jason Ferrara
In my case I'm looking to write assemblies in C# that makes use of modules defined in IronPython that others can use without having to know or care that they use IronPython (except for having to have the IronPython dlls around). Things are complicated by the fact that some of the modules

Re: [IronPython] What PythonEngine called my C# code? (was: custom ConfigurationSection in IronPython)

2006-09-18 Thread Jason Ferrara
Not that I saw. On Sep 18, 2006, at 11:14 AM, J. Merrill wrote: Was an answer to this ever given? At 12:34 PM 9/1/2006, Jason Ferrara wrote If I wanted to write a stub in C#, how do I get access to a PythonEngine that represents the python environment that called the C# code? Just calling

Re: [IronPython] What PythonEngine called my C# code? (was: custom ConfigurationSection in IronPython)

2006-09-18 Thread Dino Viehland
are :) ). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Ferrara Sent: Monday, September 18, 2006 8:48 AM To: Discussion of IronPython Subject: Re: [IronPython] What PythonEngine called my C# code? (was: custom ConfigurationSection in IronPython) Not that I saw