#!/usr/bin/env python3
# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2022 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2022-2023 CEA, EDF, OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
return
import CORBA
#import Engines
- #import SALOME
+ import SALOME
from time import sleep
orb = CORBA.ORB_init([''], CORBA.ORB_ID)
ior_fakens = None
logger.debug("Unfortunately Session not found into {} : Sleep and retry. {}/{}".format(ior_fakens_filename,nb,nbtot))
if nb == nbtot:
break
+
+ if session is None:
+ logger.debug("Couldn't find /Kernel/Session in the child process. Return.")
+ return
+
nb = 0
# --
# Wait until gui is arrived
pass
# --
if not gui_detected:
+ logger.debug("Couldn't find active GUI in the current session. Return.")
return
# --
from salome_utils import getPortNumber