]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Win32 compatibility.
authorrnv <rnv@opencascade.com>
Wed, 1 Feb 2012 12:15:44 +0000 (12:15 +0000)
committerrnv <rnv@opencascade.com>
Wed, 1 Feb 2012 12:15:44 +0000 (12:15 +0000)
src/KERNEL_PY/__init__.py

index bf19736efe67e4d8fca127ce15aad3c68f9cc975..9f30547734dac04c3430b9a506fc7aba7d2c240d 100644 (file)
@@ -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):