]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Corrections for KERNEL tests with --interp or -i options
authordmv <dmv@opencascade.com>
Tue, 19 Oct 2010 09:50:13 +0000 (09:50 +0000)
committerdmv <dmv@opencascade.com>
Tue, 19 Oct 2010 09:50:13 +0000 (09:50 +0000)
bin/runSalome.py

index d03a67d6e4e5d55b5e07603e25d6d5f6757a3783..067ae0d9273863852b0bafa24b8027345235e8fe 100755 (executable)
@@ -87,8 +87,11 @@ def kill_salome(args):
 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', '-e']+ env_ld_library_path + ['python']
+        if sys.platform != "win32":
+          env_ld_library_path=['env', 'LD_LIBRARY_PATH=' + os.getenv("LD_LIBRARY_PATH")]
+          self.CMD=['xterm', '-e']+ env_ld_library_path + ['python']
+        else:
+          self.CMD=['cmd', '/c', 'start cmd.exe', '/K', 'python']
        
     def run(self):
         global process_id