]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
use os.pathsep
authorCédric Aguerre <cedric.aguerre@edf.fr>
Wed, 22 Oct 2014 08:26:31 +0000 (10:26 +0200)
committerCédric Aguerre <cedric.aguerre@edf.fr>
Wed, 22 Oct 2014 08:26:31 +0000 (10:26 +0200)
bin/salomeContext.py

index 00de96345629011071517ea9ef43a30ef26091ad..d5cbd01699e26e4b90ca467da731f29b0c01998b 100644 (file)
@@ -268,7 +268,7 @@ class SalomeContext:
     # set environment
     for reserved in reservedDict:
       a = filter(None, reservedDict[reserved]) # remove empty elements
-      reformattedVals = ':'.join(a)
+      reformattedVals = os.pathsep.join(a)
       self.addToVariable(reserved, reformattedVals)
       pass
 
@@ -276,7 +276,7 @@ class SalomeContext:
       self.setVariable(key, val, overwrite=True)
       pass
 
-    sys.path[:0] = os.getenv('PYTHONPATH','').split(':')
+    sys.path[:0] = os.getenv('PYTHONPATH','').split(os.pathsep)
   #
 
   def _runAppli(self, args=None):