]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PAL13340 : fix launching problem on 64-bit platforms
authorvsr <vsr@opencascade.com>
Fri, 1 Sep 2006 08:35:14 +0000 (08:35 +0000)
committervsr <vsr@opencascade.com>
Fri, 1 Sep 2006 08:35:14 +0000 (08:35 +0000)
bin/runSalome.py
src/KERNEL_PY/salome_shared_modules.py

index 33490ab1a905fcd2b504c74f7144cb1a15402a6b..485140e0e110f7c75cea81f0ca766c83701bf240 100755 (executable)
@@ -56,7 +56,8 @@ def add_path(directory, variable_name):
 # -----------------------------------------------------------------------------
 
 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"
 
index ae42e195bdcfac8e6420cbf0a649fa1fa2fa6ad4..a86c155abd04f841b6cf8dd59c43ebe522c11c87 100755 (executable)
@@ -76,8 +76,9 @@ list_modules=[]
 # 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")):