From: vsr Date: Wed, 30 Aug 2006 06:20:30 +0000 (+0000) Subject: Correct problem with shared modules on 64-bit platforms ("lib64" directory should... X-Git-Tag: V3_2_2pre~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=590829cc79d81a715eec6549f90ff25c29a0c359;p=modules%2Fkernel.git Correct problem with shared modules on 64-bit platforms ("lib64" directory should be used for modules searching instead of "lib") --- diff --git a/src/KERNEL_PY/salome_shared_modules.py b/src/KERNEL_PY/salome_shared_modules.py index 9cd3abcb0..ae42e195b 100755 --- a/src/KERNEL_PY/salome_shared_modules.py +++ b/src/KERNEL_PY/salome_shared_modules.py @@ -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)