]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix the following problems:
authorrnv <rnv@opencascade.com>
Wed, 29 Jan 2014 10:35:15 +0000 (10:35 +0000)
committerrnv <rnv@opencascade.com>
Wed, 29 Jan 2014 10:35:15 +0000 (10:35 +0000)
1) Run scripts on WINDOWS platform: use " & " as command separator (windows analog of the " ; " in linux);
2) Always run command in the format "PYTHONEXECUTABLE script.py args" even on Linux, because script.py may be without execute permission.

bin/salomeLauncherUtils.py.in

index 877bd8cb9e8040f30fed74caf0b826c1fb8bbb82..27d6997a4fad65eb5ddf42b3ed3656ca01f20d4a 100644 (file)
@@ -130,10 +130,15 @@ def formatScriptsAndArgs(scriptArgs=[]):
     commands = []
     for sc_dict in scriptArgs:
       for script, sc_args in sc_dict.items(): # single entry
-        cmd = script
+        cmd = "@PYTHONBIN@ " + script
         if sc_args:
           cmd = cmd + " " + " ".join(sc_args)
         commands.append(cmd)
+    sep = " ; " 
+    if sys.platform == "win32":    
+      sep= " & "
+    command = sep.join(["%s"%x for x in commands])
+
 
     command = "; ".join(["%s"%x for x in commands])
     return command