From f224bbcac36a2eb0a85e8c53ab6d31eefde72257 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Aguerre?= Date: Wed, 22 Oct 2014 10:26:31 +0200 Subject: [PATCH] use os.pathsep --- bin/salomeContext.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/salomeContext.py b/bin/salomeContext.py index 00de96345..d5cbd0169 100644 --- a/bin/salomeContext.py +++ b/bin/salomeContext.py @@ -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): -- 2.39.2