]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR: bug 7930: to work with $KERNEL_ROOT_DIR/bin/salome/runSalome --interp=1
authorprascle <prascle>
Mon, 31 Jan 2005 09:55:28 +0000 (09:55 +0000)
committerprascle <prascle>
Mon, 31 Jan 2005 09:55:28 +0000 (09:55 +0000)
bin/runSalome.py

index 56d563c60d4ff8708547afa891e6063bf74a460d..e423d97bace04f6dc0413e9bb8f2f24260d70477 100755 (executable)
@@ -257,8 +257,8 @@ class InterpServer(Server):
     def __init__(self,args):
         self.args=args
         env_ld_library_path=['env', 'LD_LIBRARY_PATH=' + os.getenv("LD_LIBRARY_PATH")]
-        #self.CMD=['xterm', '-iconic', '-sb', '-sl', '500', '-hold','-e']+ env_ld_library_path + ['python']
-        self.CMD=['xterm', '-e', 'python']
+        self.CMD=['xterm', '-e']+ env_ld_library_path + ['python']
+        #self.CMD=['xterm', '-e', 'python']
        
     def run(self):
         global process_id
@@ -588,8 +588,19 @@ def startSalome(args, modules_list, modules_root_dir):
     #
     # additionnal external python interpreters
     #
-
-    nbaddi = int(args['interp'])
+    nbaddi=0
+    
+    try:
+        if 'interp' in args:
+            if args['interp']:
+                nbaddi = int(args['interp'][0])
+    except:
+        import traceback
+        traceback.print_exc()
+        print "-------------------------------------------------------------"
+        print "-- to get an external python interpreter:runSalome --interp=1"
+        print "-------------------------------------------------------------"
+        
     print "additional external python interpreters: ", nbaddi
     if nbaddi:
         for i in range(nbaddi):