From 861df6564f1ef976f7ee7d544b0453b30165c138 Mon Sep 17 00:00:00 2001 From: morrone Date: Wed, 11 Dec 2002 19:22:04 +0000 Subject: [PATCH] In Python 1.5 the string type does not have a find() method, so string.find is probably preferable. In this case, a find isn't needed at all. --- lustre/utils/lconf.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/utils/lconf.in b/lustre/utils/lconf.in index 3456d6f..c87e18e 100755 --- a/lustre/utils/lconf.in +++ b/lustre/utils/lconf.in @@ -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(): -- 1.8.3.1