I am hosting Python in a SL app. Basically i have an attached property that lets you pass Python script which then gets executed on the lost focus event of the element.
The IPY integration works fine as long as I don't need any 3rd party imports. I copied the formencode package to the site-packages folder under Program Files\Iron Python... and then tried to import formencode both programatically using ScriptEngine.ImportModule and inline. In each case the module is not found.
My setup code for the DLR host is the following:
var setup = new ScriptRuntimeSetup();
setup.HostType = typeof(BrowserScriptHost);
setup.LanguageSetups.Add(Python.CreateLanguageSetup(null));
setup.Options["SearchPaths"] = new string[] { string.Empty };
_runtime = new ScriptRuntime(setup);
_engine = _runtime.GetEngine("Python");
_scope = _engine.CreateScope();
_engine.ImportModule("formencode");
Any help would be appreciated.