Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b424a5
)
Add the same module directory code that lconf uses to find the Lustre python modules.
author
rread
<rread>
Wed, 2 Jul 2003 17:25:42 +0000
(17:25 +0000)
committer
rread
<rread>
Wed, 2 Jul 2003 17:25:42 +0000
(17:25 +0000)
lustre/utils/lactive
patch
|
blob
|
history
diff --git
a/lustre/utils/lactive
b/lustre/utils/lactive
index
e691423
..
a5e8580
100644
(file)
--- a/
lustre/utils/lactive
+++ b/
lustre/utils/lactive
@@
-31,6
+31,17
@@
import sys, getopt, types
import string, os
import ldap
+PYMOD_DIR = "/usr/lib/lustre/python"
+
+def development_mode():
+ base = os.path.dirname(sys.argv[0])
+ if os.access(base+"/Makefile.am", os.R_OK):
+ return 1
+ return 0
+
+if not development_mode():
+ sys.path.append(PYMOD_DIR)
+
import Lustre
lactive_options = [