From 6935d47475b6641e4547864a393712f1340181c4 Mon Sep 17 00:00:00 2001 From: rnv Date: Wed, 1 Feb 2012 12:15:44 +0000 Subject: [PATCH] Win32 compatibility. --- src/KERNEL_PY/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/KERNEL_PY/__init__.py b/src/KERNEL_PY/__init__.py index bf19736ef..9f3054773 100644 --- a/src/KERNEL_PY/__init__.py +++ b/src/KERNEL_PY/__init__.py @@ -105,7 +105,9 @@ ROOT_PYTHONPACKAGE_NAME="salome" # import os, sys from salome_utils import verbose -MATCH_ENDING_PATTERN="site-packages/salome" + +MATCH_ENDING_PATTERN="site-packages" + os.path.sep + "salome" + def extend_path(pname): for dir in sys.path: if not isinstance(dir, basestring) or not os.path.isdir(dir) or not dir.endswith(MATCH_ENDING_PATTERN): -- 2.39.2