]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Restore without ContainersManager and portability Alpha_OSF(CCRT) BR_JR2
authorrahuel <rahuel@opencascade.com>
Tue, 9 Nov 2004 08:55:34 +0000 (08:55 +0000)
committerrahuel <rahuel@opencascade.com>
Tue, 9 Nov 2004 08:55:34 +0000 (08:55 +0000)
bin/orbmodule.py
bin/runSalome.py

index 50512d985a2928d3b5dbc1cc51243f17c47b969e..9779b6f7d3ed546abeeb753a99a26b5881a4df64 100755 (executable)
@@ -7,25 +7,25 @@ import CosNaming
 
 # -----------------------------------------------------------------------------
 
-class Server:
-   XTERM="/usr/bin/X11/xterm -iconic -e "
-   CMD=""
+#CCRTclass Server:
+   #CCRTXTERM="/usr/bin/X11/xterm -iconic -e "
+   #CCRTCMD=""
 
-   def run(self):
-       commande=self.XTERM+self.CMD
-       print commande,"NOT DONE"
+   #CCRTdef run(self):
+       #CCRTcommande=self.XTERM+self.CMD
+       #CCRTprint commande,"NOT DONE"
        #CCRTier=os.system(commande)
        #CCRTif ier:print "Commande failed"
 
 # -----------------------------------------------------------------------------
 
-class NamingServer(Server):
-   XTERM=""
-   USER=os.getenv('USER')
-   if USER is None:
-      USER='anonymous'
-   LOGDIR="/tmp/logs/" + USER
-   os.system("mkdir -m 777 -p " + LOGDIR)
+#CCRTclass NamingServer(Server):
+   #CCRTXTERM=""
+   #CCRTUSER=os.getenv('USER')
+   #CCRTif USER is None:
+      #CCRTUSER='anonymous'
+   #CCRTLOGDIR="/tmp/logs/" + USER
+   #CCRTos.system("mkdir -m 777 -p " + LOGDIR)
    #CCRTCMD="runNS.sh > " + LOGDIR + "/salomeNS.log 2>&1"
 
 # -----------------------------------------------------------------------------
@@ -42,16 +42,16 @@ class client:
 
    def initNS(self):
       # Obtain a reference to the root naming context
-      obj         = self.orb.resolve_initial_references("NameService")
-      try:
-          self.rootContext = obj._narrow(CosNaming.NamingContext)
-          return
-      except CORBA.COMM_FAILURE:
-          self.rootContext = None
-          print "Lancement du Naming Service",
+      #CCRTobj         = self.orb.resolve_initial_references("NameService")
+      #CCRTtry:
+          #CCRTself.rootContext = obj._narrow(CosNaming.NamingContext)
+          #CCRTreturn
+      #CCRTexcept CORBA.COMM_FAILURE:
+          #CCRTself.rootContext = None
+          #CCRTprint "Lancement du Naming Service",
           
       # On lance le Naming Server (doit etre dans le PATH)
-      NamingServer().run()
+      #CCRTNamingServer().run()
       print "Searching Naming Service ",
       ncount=0
       delta=0.1
@@ -68,7 +68,7 @@ class client:
               time.sleep(delta)
 
       if self.rootContext is None:
-          print "Failed to narrow the root naming context"
+          print "Failed to narrow the root naming context",ncount
           sys.exit(1)
       print " found in %s seconds " % ((ncount-1)*delta)
 
index d2dedf8e66851cef43b5454aa3dfb7e223ab977e..80e0a5f5abf4c2555bc8823004a5af29d16319c0 100755 (executable)
@@ -104,6 +104,7 @@ try:
          killSalome()
         process_id={}
          os.remove(filedict)
+         time.sleep(1.0)
        
 except getopt.error, msg:
   print usage