Re: [Python.NET] Using a managed private DLL in python for .NET‏

2012-04-07 Thread Barton
import clr clr.AddReference("OneWireAPI") import OneWireAPI as OW # Now you may access the classes, etc on the library # Have fun with that! NOTE: I haven't tried this. # OneWireContainer enumeration for owc in OW.getAllDeviceContainers(): print owc.getDescription () On 04/04/2012 07:34

Re: [Python.NET] Using a managed private DLL in python for .NET‏

2012-04-06 Thread Brian Lloyd
What is the top level namespace exported by that assembly? Assuming it was 'OneWire' you should be able to do: import clr clr.addReference("OneWireAPI") import OneWire ... Hope this helps! - Brian 2012/4/4 Jorn Vanloofsvelt > Dear Brian > > My question is very short, and I hope that the an

[Python.NET] Using a managed private DLL in python for .NET‏

2012-04-06 Thread Jorn Vanloofsvelt
Dear Brian My question is very short, and I hope that the answer is simple but I have not been able to find an answer on the web. I am using python for .NET, I want to use a private managed DLL. My code looks as follows: import clr from clr import System clr.AddReference("OneWireAPI") That