Blame pypy-1.4.1-add-LIBRARY_INSTALLATION_PATH.patch

f756cfc
diff -r cd083843b67a pypy/translator/goal/app_main.py
f756cfc
--- a/pypy/translator/goal/app_main.py	Mon Dec 20 17:17:45 2010 +0100
f756cfc
+++ b/pypy/translator/goal/app_main.py	Wed Dec 22 17:43:21 2010 -0500
f756cfc
@@ -191,6 +191,12 @@
f756cfc
     IS_WINDOWS = False
f756cfc
 
f756cfc
 def get_library_path(executable):
f756cfc
+    # FIXME: get this from translator configuration
f756cfc
+    dirname = LIBRARY_INSTALLATION_PATH
f756cfc
+    newpath = sys.pypy_initial_path(dirname)
f756cfc
+    if newpath:
f756cfc
+        return newpath
f756cfc
+    
f756cfc
     search = executable
f756cfc
     while 1:
f756cfc
         dirname = resolvedirof(search)