]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Corrections for Windows KERNEL tests with --xterm or -x options
authordmv <dmv@opencascade.com>
Tue, 19 Oct 2010 09:54:03 +0000 (09:54 +0000)
committerdmv <dmv@opencascade.com>
Tue, 19 Oct 2010 09:54:03 +0000 (09:54 +0000)
bin/server.py

index cb5451c62c4ed48e064c1bbab16c5f62eeeb5a18..47f061d89b0292d65f915946b36a690b4ad2c8bd 100755 (executable)
@@ -38,7 +38,10 @@ class Server:
         self.CMD=[]
         self.ARGS=[]
         if self.args.get('xterm'):
+          if sys.platform != "win32":
             self.ARGS=['xterm', '-iconic', '-sb', '-sl', '500', '-hold']
+          else:
+            self.ARGS=['cmd', '/c', 'start  cmd.exe', '/K']
 
     def __init__(self,args):
         self.args=args
@@ -50,9 +53,10 @@ class Server:
         myargs=self.ARGS
         if self.args.get('xterm'):
             # (Debian) send LD_LIBRARY_PATH to children shells (xterm)
-            env_ld_library_path=['env', 'LD_LIBRARY_PATH='
-                                 + os.getenv("LD_LIBRARY_PATH")]
-            myargs = myargs +['-T']+self.CMD[:1]+['-e'] + env_ld_library_path
+            if sys.platform != "win32":
+              env_ld_library_path=['env', 'LD_LIBRARY_PATH='
+                                   + os.getenv("LD_LIBRARY_PATH")]
+              myargs = myargs +['-T']+self.CMD[:1]+['-e'] + env_ld_library_path
         command = myargs + self.CMD
         #print "command = ", command
         if sys.platform == "win32":