]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Correct problem with shared modules on 64-bit platforms ("lib64" directory should...
authorvsr <vsr@opencascade.com>
Wed, 30 Aug 2006 06:20:30 +0000 (06:20 +0000)
committervsr <vsr@opencascade.com>
Wed, 30 Aug 2006 06:20:30 +0000 (06:20 +0000)
src/KERNEL_PY/salome_shared_modules.py

index 9cd3abcb037ab393442c137ffe6a8bd02aa7f91c..ae42e195bdcfac8e6420cbf0a649fa1fa2fa6ad4 100755 (executable)
@@ -76,8 +76,11 @@ list_modules=[]
 # Import all *_shared_modules in the path and store them in list_modules
 path=salome_path.split(":")
 for rep in path:
+    libdir = "lib"
+    if os.path.exists("/usr/lib64/libc.so"):
+        libdir = "lib64"
     # Import all *_shared_modules in rep
-    for f in glob.glob(os.path.join(rep,"lib","python"+sys.version[:3],"site-packages","salome","shared_modules","*_shared_modules.py")):
+    for f in glob.glob(os.path.join(rep,libdir,"python"+sys.version[:3],"site-packages","salome","shared_modules","*_shared_modules.py")):
         try:
            name=os.path.splitext(os.path.basename(f))[0]
            register_name(name)