]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
[windows] Fix a problem when salome is installed in a path with spaces inside.
authoradam <adam>
Fri, 29 May 2009 11:56:39 +0000 (11:56 +0000)
committeradam <adam>
Fri, 29 May 2009 11:56:39 +0000 (11:56 +0000)
bin/envSalome.py

index 348c0a4606a9d3e3c59610f949ee2928f0721ca7..6908084d101a4a43341ef11695f89571227507b5 100755 (executable)
@@ -42,4 +42,11 @@ sys.argv = argv[1:]
 #runSalome.set_env(args, modules_list, modules_root_dir)
 setenv.main(True);
 
+if sys.platform == "win32":
+    if len(argv) >= 2:
+        # Fix a problem of spaces in argv[1]
+        argv[1] = '"%s"'%(argv[1])
+        pass
+    pass
+
 os.execvp(argv[0],argv)