[pypy-svn] r44137 - pypy/branch/kill-ctypes/pypy/rpython/lltypesystem
fijal at codespeak.net
fijal at codespeak.net
Mon Jun 11 14:53:40 CEST 2007
Author: fijal
Date: Mon Jun 11 14:53:39 2007
New Revision: 44137
Modified:
pypy/branch/kill-ctypes/pypy/rpython/lltypesystem/rfficache.py
Log:
Don't use pyimport (not to populate sys.modules)
Modified: pypy/branch/kill-ctypes/pypy/rpython/lltypesystem/rfficache.py
==============================================================================
--- pypy/branch/kill-ctypes/pypy/rpython/lltypesystem/rfficache.py (original)
+++ pypy/branch/kill-ctypes/pypy/rpython/lltypesystem/rfficache.py Mon Jun 11 14:53:39 2007
@@ -50,8 +50,9 @@
def get_type_sizes(filename, platform_key=machine_key(), types=TYPES,
compiler_exe=None):
try:
- mod = py.path.local(filename).pyimport()
- platforms = mod.platforms
+ mod = {}
+ exec py.path.local(filename).read() in mod
+ platforms = mod['platforms']
except (ImportError, py.error.ENOENT):
platforms = {}
try:
More information about the pypy-svn
mailing list