]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Bug IPAL20202 Qt4 porting: it is impossible to start application with "-t" option.
authordmv <dmv@opencascade.com>
Mon, 11 Aug 2008 08:39:18 +0000 (08:39 +0000)
committerdmv <dmv@opencascade.com>
Mon, 11 Aug 2008 08:39:18 +0000 (08:39 +0000)
bin/envSalome.py
bin/setenv.py

index ed153d41bfb382216b4c620d3245a6960678f0d6..1d0d61cb6a8a489dc2c39953aecdb3fd106e6627 100755 (executable)
@@ -39,6 +39,6 @@ sys.argv = argv[1:]
     
 #args, modules_list, modules_root_dir = setenv.get_config()
 #runSalome.set_env(args, modules_list, modules_root_dir)
-setenv.main(True);
+setenv.main();
 
 os.execvp(argv[0],argv)
index 052e4d2e6e8c2495c90f2267f3c6d126bacf0985..c5b9f418d2dfad3a18ce1cd635bead4a5c439da5 100755 (executable)
@@ -262,12 +262,13 @@ def set_env(args, modules_list, modules_root_dir, silent=False):
     = os.path.join(modules_root_dir["KERNEL"],"share",
                    salome_subdir,"resources","kernel")
 
-    if sys.platform == 'win32':
-       graphicShr = "OCCViewer.dll"    
-    else:
-       graphicShr = "libOCCViewer.so"  
-    os.environ["CSF_GraphicShr"] \
-    = os.path.join(modules_root_dir["GUI"],"lib","salome",graphicShr)
+    if "GUI" in modules_list:
+       if sys.platform == 'win32':
+           graphicShr = "OCCViewer.dll"        
+        else:
+           graphicShr = "libOCCViewer.so"      
+        os.environ["CSF_GraphicShr"] \
+       = os.path.join(modules_root_dir["GUI"],"lib","salome",graphicShr)
 
     if "GEOM" in modules_list:
         if verbose() and not silent: print "GEOM OCAF Resources" 
@@ -289,9 +290,9 @@ def set_env(args, modules_list, modules_root_dir, silent=False):
 
 # -----------------------------------------------------------------------------
 
-def main(silent=False):
-    args, modules_list, modules_root_dir = get_config(silent=silent)
-    set_env(args, modules_list, modules_root_dir, silent=silent)
+def main():
+    args, modules_list, modules_root_dir = get_config()
+    set_env(args, modules_list, modules_root_dir)
     return args
 
 # -----------------------------------------------------------------------------