Author: dmeyer
Date: Sat Feb 10 17:45:00 2007
New Revision: 9190

Modified:
   trunk/ui/setup.py

Log:
try to be clever by detecting --prefix

Modified: trunk/ui/setup.py
==============================================================================
--- trunk/ui/setup.py   (original)
+++ trunk/ui/setup.py   Sat Feb 10 17:45:00 2007
@@ -34,7 +34,19 @@
 import os
 import stat
 
-# Freevo distutils stuff
+# try to be clever and add the install prefix to the path
+# to be sure kaa.base and freevo.core can be found
+for pos, arg in enumerate(sys.argv[1:]):
+    if arg.startswith('--prefix='):
+        prefix=arg[9:]
+    elif arg.startswith('--prefix') and pos + 2 < len(sys.argv):
+        prefix=sys.argv[pos+2]
+    else:
+        continue
+    libdir = 'lib/python%s.%s/site-packages' % sys.version_info[:2]
+    sys.path.insert(0, os.path.join(prefix, libdir))
+
+# import freevo distribution utils
 from freevo.distribution import setup, VERSION
 import freevo.conf
 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to