[pypy-svn] r10356 - pypy/dist/pypy/translator/llvm/test

cfbolz at codespeak.net cfbolz at codespeak.net
Wed Apr 6 02:19:25 CEST 2005


Author: cfbolz
Date: Wed Apr  6 02:19:25 2005
New Revision: 10356

Modified:
   pypy/dist/pypy/translator/llvm/test/autopath.py
Log:
Even more ouch.

Modified: pypy/dist/pypy/translator/llvm/test/autopath.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/test/autopath.py	(original)
+++ pypy/dist/pypy/translator/llvm/test/autopath.py	Wed Apr  6 02:19:25 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