]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Modify runSalome script - the python scripts should be executed in GUI only if it...
authorvsr <vsr@opencascade.com>
Tue, 9 Oct 2012 16:28:34 +0000 (16:28 +0000)
committervsr <vsr@opencascade.com>
Tue, 9 Oct 2012 16:28:34 +0000 (16:28 +0000)
bin/runSalome.py

index c56da55cfad7cfb034187ece4484655605b2e515..7ced786fe0394a5aedf918f5cf69bf2275cb4686 100755 (executable)
@@ -276,6 +276,10 @@ class SessionServer(Server):
                     self.SCMD2+=['--study-hdf=%s'%self.args['study_hdf']]
                     pass
                 pass
+                if self.args.has_key('pyscript') and len(self.args['pyscript']) > 0:
+                    self.SCMD2+=['--pyscript=%s'%(",".join(self.args['pyscript']))]
+                    pass
+                pass
             pass
         if self.args['noexcepthandler']:
             self.SCMD2+=['noexcepthandler']
@@ -294,9 +298,8 @@ class SessionServer(Server):
                   list_modules.insert(0,m)
             list_modules.reverse()
             self.SCMD2+=['--modules (%s)' % ":".join(list_modules)]
-
-        if self.args.has_key('pyscript') and len(self.args['pyscript']) > 0:
-            self.SCMD2+=['--pyscript=%s'%(",".join(self.args['pyscript']))]
+            pass
+        pass
 
     def setpath(self,modules_list,modules_root_dir):
         list_modules = modules_list[:]