From loocas at duber.cz Sun Aug 3 12:22:22 2008 From: loocas at duber.cz (loocas duber) Date: Sun, 3 Aug 2008 12:22:22 +0200 Subject: [Python.NET] Using CLR under standard Python Message-ID: <8B9C218608C442EAAD2AC483D21006F7@TURBODIZER> Hi there, I'm quite new to the whole PythonNET project and thus if my question will seem stupid to you, guys, please ignore it But, I'm looking into a way of using .NET objects (specifically windows forms etc...) for scripting rich user interfaces in my tools, but I strictly need to use Python interpreteur only, nothing else. So, it'd be super-sweet if I could, somehow, get PythonNET run as a module. The thing is, I'm a visual effects technical director at a vfx company, I primarily use 3ds Max, which has a native support for .NET objects via its MAXScript language and secondarily I use Maya, which, on the other hand, natively supports Python (it implements its own Python installation) so I can run various modules under Maya and use it in my scripts. The last thing that I'm missing are the .NET UI objects like ListView, TreeView, buttons etc... I've been looking around the web for a .NET module/implementation for Python, but it could have not be found anywhere. IronPython isn't the option here as I need to use Mayas Python interpreteur for running Python code, not IronPythons own interpreteur. I basically tried copying the clr.pyd in the DLLs folder under Python25 (btw: I'm on Windows), it recognized it, but when trying to import the clr module it threw and error: "ImportError: dynamic module does not define init functino (initclr)" and that's where my "thorough" :D knowledge of PythonNET comes to an end. Do you have any tips/tricks on how to make PythonNET, or rather the clr, run under regular Python? (ver 2.4 up) Thanks a lot in advance, cheers, Lukas "loocas" Dubeda lead technical director UPP Prague loocas at upp.cz www.duber.cz -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 257 bytes Desc: not available URL: From daniel_cernea at yahoo.com Thu Aug 21 17:00:37 2008 From: daniel_cernea at yahoo.com (Daniel Cernea) Date: Thu, 21 Aug 2008 08:00:37 -0700 (PDT) Subject: [Python.NET] Execute .py file with PythonDotNet Message-ID: <693760.84919.qm@web38807.mail.mud.yahoo.com> Hi, I'm new to Python .Net and I have encountered some problems. I'm currently trying to execute a python file .py from C# and for this I was trying to modify the pythonconsole.cs file included in the pythonnet project. Long story short, whatever I try I can't manage to get it to execute that file and also pass 1 argument to it. Does someone have some sample code for my problem? Thanks a lot. Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: