[pypy-svn] r10354 - pypy/dist/pypy/translator/llvm

cfbolz at codespeak.net cfbolz at codespeak.net
Wed Apr 6 01:53:24 CEST 2005


Author: cfbolz
Date: Wed Apr  6 01:53:24 2005
New Revision: 10354

Modified:
   pypy/dist/pypy/translator/llvm/autopath.py
Log:
Ouch. Ouch. Ouch.


Modified: pypy/dist/pypy/translator/llvm/autopath.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/autopath.py	(original)
+++ pypy/dist/pypy/translator/llvm/autopath.py	Wed Apr  6 01:53:24 2005
@@ -46,8 +46,10 @@
     
     while checkpaths:
         orig = checkpaths.pop()
-        if os.path.join(os.path.realpath(orig), '').startswith(pypy_root):
-            sys.path.remove(orig)
+        fullorig = os.path.join(os.path.realpath(orig), '')
+        if fullorig.startswith(pypy_root):
+            if os.path.exists(os.path.join(fullorig, '__init__.py')):
+                sys.path.remove(orig)
     sys.path.insert(0, head)
 
     munged = {}



More information about the Pypy-commit mailing list