If mymodule does not use absolute imports the following will work but
I suggest the cleaner shortcut

mymodule=local_import('mymodule')


On Oct 8, 8:07 am, Jason Brower <[email protected]> wrote:
> It hsa been asked before but I am still trying to understand it.
> I have the mods for ampy a tool to let me use AMP network
> communication.  I found all the modules I need in the ampy directory.
> Now I want to keep things organized so can I put the directory "ampy"
> with all it's modules in there? if so , the I should type..
>
> exec('import applications.%s.modules.mymodule as mymodule' % \
>      request.application)
>
> Am I right?  If so, how do I get the specific module I want? similar to
> this...
>
> from ampy import proxy
>
> Best Regards,
> Jason Brower

Reply via email to