Whamcloud - gitweb
b=5800
authorphil <phil>
Tue, 1 Mar 2005 21:24:56 +0000 (21:24 +0000)
committerphil <phil>
Tue, 1 Mar 2005 21:24:56 +0000 (21:24 +0000)
Info:
HP SFS 2250/CFS 5800

On em64t/x86_64 systems the %{_libdir} rpm path resolves to
/usr/lib64 rather than /usr/lib. This patch updates lconf to
look in both locations for the Lustre extension modules.

lustre/utils/lconf

index c07c60e..b818deb 100755 (executable)
@@ -35,7 +35,7 @@ if sys.version[0] == '1':
 else:
     from fcntl import F_GETFL, F_SETFL
 
-PYMOD_DIR = "/usr/lib/lustre/python"
+PYMOD_DIR = ["/usr/lib/lustre/python", "/usr/lib64/lustre/python"]
 
 def development_mode():
     base = os.path.dirname(sys.argv[0])
@@ -46,7 +46,7 @@ def development_mode():
 if development_mode():
     sys.path.append('../utils')
 else:
-    sys.path.append(PYMOD_DIR)
+    sys.path.extend(PYMOD_DIR)
 
 import Lustre