Skip to main content
Manu Fernandes
Inspiring
Jul 31, 2023 2:41 AM UTC

U2Python : PyCall from a subPackage

hello,

I try to call a method which is into a module which is into a package. 

on py I do : from package.subpackage import {*|module} 

Is there a syntax to do it with PyCallFunction('package.subpackage.module',mth,xx) or PyImport('package.subpacakge.module') ?? 

thanks for any help



------------------------------
Manu Fernandes
------------------------------

    1 reply

    Manu Fernandes
    Inspiring
    Jul 31, 2023 2:43 AM UTC

    hello,

    I try to call a method which is into a module which is into a package. 

    on py I do : from package.subpackage import {*|module} 

    Is there a syntax to do it with PyCallFunction('package.subpackage.module',mth,xx) or PyImport('package.subpacakge.module') ?? 

    thanks for any help



    ------------------------------
    Manu Fernandes
    ------------------------------

    sorry, 

    PyImport('package.subpacakge.module') works.



    ------------------------------
    Manu Fernandes
    ------------------------------