Skip to main content

U2Python : PyCall from a subPackage

  • July 31, 2023
  • 1 reply
  • 0 views

Manu Fernandes
Forum|alt.badge.img+2

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
Forum|alt.badge.img+2

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
------------------------------