I have a C# .NET classes that exist outside of a namespace that need to be accessed inside of IronPython. Typically I would do:
import SomeNamespace
from SomeNamespace import *
However, I do not have a namespace.
Import your assembly like usual, then just import the class name:
import clr
clr.AddReference("MyAssembly")
import MyGlobalClass
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With