Whamcloud - gitweb
In Python 1.5 the string type does not have a find() method, so string.find
authormorrone <morrone>
Wed, 11 Dec 2002 19:22:04 +0000 (19:22 +0000)
committermorrone <morrone>
Wed, 11 Dec 2002 19:22:04 +0000 (19:22 +0000)
is probably preferable.  In this case, a find isn't needed at all.

lustre/utils/lconf.in

index 3456d6f..c87e18e 100755 (executable)
@@ -1668,7 +1668,7 @@ def setupModulePath(cmd):
     base = os.path.dirname(cmd)
     if os.access(base+"/Makefile", os.R_OK):
         config.src_dir(base + "/../")  
-    if not PORTALS_DIR.find('/') == 0:
+    if PORTALS_DIR[0] != '/':
        PORTALS_DIR= config.src_dir()+PORTALS_DIR
 
 def sys_set_debug_path():