Assuming the file should be in

  applications/<yourapp>/modules/plugin_xx/libs1.py

should be

  libs1 = local_import("plugin_xxx/libs1.py)

and if there is a function f in the module

  r=libs1.f(...)


On Nov 22, 5:09 am, Aurigadl <aurig...@gmail.com> wrote:
> as I can import a model from plugin
>
> Example:
>
> myAplication
>    =>models
>    =>controller
>    =>views
>   .
>   .
>   .
>   .
>     =>plugins_xxx
>         => models
>              => plugin_xxx.py
>         =>modules
>              => libs1py
>              => libs2.py
>
> In the file models/plugin_xxx.py  I write this:
>
> libs1.py = local_import(libs1.py)
> but it generates an error
>
> also I have tried
>  libs1.py = local_import("plugin_xxx\\libs1.py)

Reply via email to