]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
CCAR: add a way in envSalome.py (-exec tag) to use options only for execution (needed...
authorcaremoli <caremoli>
Sat, 2 Oct 2010 15:48:02 +0000 (15:48 +0000)
committercaremoli <caremoli>
Sat, 2 Oct 2010 15:48:02 +0000 (15:48 +0000)
bin/appliskel/runSession
bin/envSalome.py

index 885a7e5c8b20ca28d813c65f3d26df37ab009e74..2f792b3f2fb2bf869f6d8a2d9618ca10864c6d6f 100755 (executable)
@@ -114,7 +114,7 @@ fi
 # --- invoke shell with or without args
 
 if [ $# -ne 0 ] ; then
-    ${KERNEL_ROOT_DIR}/bin/salome/envSalome.py $*
+    ${KERNEL_ROOT_DIR}/bin/salome/envSalome.py -exec $*
 else
 
     ${KERNEL_ROOT_DIR}/bin/salome/envSalome.py /bin/bash --rcfile ${HOME}/${APPLI}/.bashrc
index 4ef0b8aaab60fe37c14b5260472e0a91b91ac251..d4fb61bd7ba45fa4da56be4339d5241679a501ed 100755 (executable)
@@ -29,19 +29,14 @@ import setenv
 kernel_root=os.getenv("KERNEL_ROOT_DIR")
 sys.path[:0]=[kernel_root+"/bin/salome"]
 
-#import runSalome
-
 argv = sys.argv[1:]
 sys.argv = argv[1:]
 
-#sys.argv = [sys.argv[0]]
-#if len(argv) > 3:
-#    sys.argv += argv[3:]
-#if len(argv) > 2:
-#    sys.argv = argv[2:]
-    
-#args, modules_list, modules_root_dir = setenv.get_config()
-#runSalome.set_env(args, modules_list, modules_root_dir)
+if argv[0] == "-exec":
+  #keep options only for execution
+  del argv[0]
+  sys.argv = []
+
 setenv.main(True);
 
 if sys.platform == "win32":