Reputation: 305
scope.SetVariable("math", ?? typeof(System.Math) ??);
or do I need create a module?
Upvotes: 5
Views: 2031
Reputation: 6486
You can do:
scope.SetVariable("math", DynamicHelpers.GetPythonTypeFromType(typeof(System.Math)));
DynamicHelpers is in IronPython.Runtime.Types.
Upvotes: 7