[pypy-svn] r10011 - pypy/dist/pypy/translator/tool

tismer at codespeak.net tismer at codespeak.net
Mon Mar 21 19:56:48 CET 2005


Author: tismer
Date: Mon Mar 21 19:56:48 2005
New Revision: 10011

Modified:
   pypy/dist/pypy/translator/tool/buildpyxmodule.py
Log:
moved the udir import into the function that needs it,
in orderto make this module importable when run under py.py

Modified: pypy/dist/pypy/translator/tool/buildpyxmodule.py
==============================================================================
--- pypy/dist/pypy/translator/tool/buildpyxmodule.py	(original)
+++ pypy/dist/pypy/translator/tool/buildpyxmodule.py	Mon Mar 21 19:56:48 2005
@@ -1,5 +1,4 @@
 import autopath
-from pypy.tool.udir import udir
 
 import py
 from py.process import cmdexec 
@@ -155,6 +154,7 @@
 
     # build the flow graph
     from pypy.objspace.flow import Space
+    from pypy.tool.udir import udir
     space = Space()
     name = func.func_name
     funcgraph = space.build_flow(func)



More information about the Pypy-commit mailing list