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)
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
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
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 = "
#
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