[pypy-svn] r36465 - pypy/dist/pypy/config

mwh at codespeak.net mwh at codespeak.net
Thu Jan 11 12:31:32 CET 2007


Author: mwh
Date: Thu Jan 11 12:31:26 2007
New Revision: 36465

Modified:
   pypy/dist/pypy/config/pypyoption.py
Log:
(cfbolz, mwh)

When auto-building the config children for usemodules, look for the __init__.py
as well as the directory.

(I hate svn).


Modified: pypy/dist/pypy/config/pypyoption.py
==============================================================================
--- pypy/dist/pypy/config/pypyoption.py	(original)
+++ pypy/dist/pypy/config/pypyoption.py	Thu Jan 11 12:31:26 2007
@@ -5,7 +5,8 @@
 
 modulepath = py.magic.autopath().dirpath().dirpath().join("module")
 all_modules = [p.basename for p in modulepath.listdir()
-                   if p.check(dir=True, dotfile=False)]
+               if p.check(dir=True, dotfile=False)
+               and p.join('__init__.py').check()]
 
 essential_modules = dict.fromkeys(
     ["exceptions", "_file", "sys", "__builtin__", "posix"]



More information about the Pypy-commit mailing list