def __init__(self ,containerName, containerIORStr):
MESSAGE( "SALOME_Container_i::__init__" )
- self._orb = CORBA.ORB_init(sys.argv, CORBA.ORB_ID)
+ try:
+ argv = sys.argv
+ except AttributeError :
+ # for embedded python interpreter
+ # shouldn't be needed after python 3.8
+ # see https://bugs.python.org/issue32573
+ argv = ['']
+ self._orb = CORBA.ORB_init(argv, CORBA.ORB_ID)
self._poa = self._orb.resolve_initial_references("RootPOA")
self._containerName = containerName
if verbose(): print("SALOME_Container.SALOME_Container_i : _containerName ",self._containerName)
- #self._naming_service = SALOME_NamingServicePy_i(self._orb)
self._container = self._orb.string_to_object(containerIORStr)
#-------------------------------------------------------------------------