Take a look at the imp and runpy modules. These will allow you to initialize a module without registering it to any namespace. You can then decide where you want the module to appear.
On Fri, Mar 16, 2012 at 8:04 AM, pricee...@googlemail.com < pricee...@gmail.com> wrote: > I ve been trying to import from a module into the __main__ namespace. > Cannot find how to do it though. Is it possible by __import__ .Any > examples ? > > -- > view archives: http://groups.google.com/group/python_inside_maya > change your subscription settings: > http://groups.google.com/group/python_inside_maya/subscribe > -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe