# -----------------------------------------------------------------------------
def get_lib_dir():
- if os.path.exists("/usr/lib64/libc.so"):
+ import platform, re
+ if re.match(".*64.*", platform.machine()):
return "lib64"
return "lib"
# Import all *_shared_modules in the path and store them in list_modules
path=salome_path.split(":")
for rep in path:
+ import platform, re
libdir = "lib"
- if os.path.exists("/usr/lib64/libc.so"):
+ if re.match(".*64.*", platform.machine()):
libdir = "lib64"
# Import all *_shared_modules in rep
for f in glob.glob(os.path.join(rep,libdir,"python"+sys.version[:3],"site-packages","salome","shared_modules","*_shared_modules.py")):