From b3e70e22a4f4c421c21f1f911d3aabad499fa0c4 Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 29 May 2009 11:56:39 +0000 Subject: [PATCH] [windows] Fix a problem when salome is installed in a path with spaces inside. --- bin/envSalome.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/envSalome.py b/bin/envSalome.py index 348c0a460..6908084d1 100755 --- a/bin/envSalome.py +++ b/bin/envSalome.py @@ -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) -- 2.39.2