]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
correct after SWP12334
authorptv <ptv@opencascade.com>
Fri, 12 May 2006 07:06:49 +0000 (07:06 +0000)
committerptv <ptv@opencascade.com>
Fri, 12 May 2006 07:06:49 +0000 (07:06 +0000)
bin/launchConfigureParser.py
bin/setenv.py
src/KERNEL_PY/salome_shared_modules.py

index 2c8fbb15cf96d27539aa1fce86c72b667fec3aee..758bbf2867af602c634f60859b4863bcb3a63ca1 100755 (executable)
@@ -429,4 +429,7 @@ else:
 for m in args[modules_nam]:
     if m not in ["KERNEL", "GUI", ""] and os.getenv("%s_ROOT_DIR"%m):
         dirs.append( os.getenv("%s_ROOT_DIR"%m) +  "/share/salome/resources" )
-os.environ[config_var] = ":".join(dirs)
+if os.sys.platform == 'win32':
+  os.environ[config_var] = ";".join(dirs)
+else:
+  os.environ[config_var] = ":".join(dirs)
index f4956b2cd17a9ef42be079ec242e4cb5f6348162..b1d9a37f817165d6b9e38cf552064cb8399bb387 100755 (executable)
@@ -16,9 +16,9 @@ salome_subdir = "salome"
 def add_path(directory, variable_name):
     """Function helper to add environment variables"""
     if sys.platform == "win32":
-       splitsym = ";"
+         splitsym = ";"
     else:
-       splitsym = ":"
+         splitsym = ":"
     if not os.environ.has_key(variable_name):
         os.environ[variable_name] = ""
         pass
@@ -150,8 +150,10 @@ def set_env(args, modules_list, modules_root_dir):
             pass
         pass
 
-
-    os.environ["SALOMEPATH"]=":".join(modules_root_dir_list)
+    if sys.platform == 'win32':
+        os.environ["SALOMEPATH"]=";".join(modules_root_dir_list)
+    else:
+        os.environ["SALOMEPATH"]=":".join(modules_root_dir_list)
     
     # set trace environment variable
     
index 3e492613fb9f9746ddb0a1322c90ebf77110a299..690edb7473c5e85738455ceae62dfec4a0ab7115 100755 (executable)
@@ -71,7 +71,10 @@ salome_path=os.environ.get("SALOMEPATH",os.getenv("KERNEL_ROOT_DIR"))
 list_modules=[]
 
 # Import all *_shared_modules in the path and store them in list_modules
-path=salome_path.split(":")
+splitter = ":"
+if sys.platform == "win32":
+  splitter = ";"
+path=salome_path.split(splitter)
 #print "...SALOME_PATH = "
 #print salome_path
 #print "...PATH = "
@@ -98,6 +101,6 @@ for rep in path:
 #
 for name,module in sys.modules.items():
     if import_hook.is_shared(name) and shared_imported.get(name) is None:
-       print "Module shared added to shared_imported: ",name
+       #print "Module shared added to shared_imported: ",name
        shared_imported[name]=module