<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi David,<div class=""><br class=""></div><div class=""><blockquote type="cite" class="">Is there a way to import the various environments (smtkOperationEnvironment, etc) in python? </blockquote><div class=""><br class=""></div>There is nothing yet, but that was just an oversight.<br class=""><div><br class=""></div><div><blockquote type="cite" class="">are the registration methods wrapped</blockquote><br class=""></div><div>Since access to the singletons in smtk::environment are wrapped, none of the other stuff needs to be. I’ve created a <a href="https://gitlab.kitware.com/cmb/smtk/merge_requests/1095" class="">mockup</a> of one way to force the import of a session’s environment, but I’m open to ideas. </div><div><br class=""></div><div><blockquote type="cite" class="">am I expected to use some python dlopen equivalent to load them</blockquote><br class=""></div><div>I think the mockup looks a little cleaner to the end-user than dlopen.</div><div><br class=""></div><div>Sincerely,</div><div>T.J.</div><div><br class=""><blockquote type="cite" class=""><div class="">On Apr 5, 2018, at 10:41 AM, David Thompson <<a href="mailto:david.thompson@kitware.com" class="">david.thompson@kitware.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi TJ,<br class=""><br class="">I'm trying to get tests working as I replace ModelEntityItem with ReferenceItem and have some questions about python tests:<br class=""><br class="">Is there a way to import the various environments (smtkOperationEnvironment, etc) in python? <br class=""><br class="">I see that "import smtk.environment" exists, but are the registration methods wrapped, or am I expected to use some python dlopen equivalent to load them, or have we just not been there yet?<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">       </span>Thanks,<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>David</div></div></blockquote></div><br class=""></div></body></html>