I\'m using CPython and I have a C# dll. I\'m trying to use Python for .NET to make them talk. I can\'t use IronPython because I need to integrate this into an existing CPy
Did you try clr.FindAssembly?
import clr import sys assemblydir = r"C:\pyfornet_test" assemblypath = r"C:\pyfornet_test\DotNet4Class.dll" sys.path.append(assemblydir) clr.FindAssembly(assemblypath)
I don't know why it works, but this code works on my computer (Python 2.7, .NET4)