[pypy-svn] r26380 - pypy/dist/pypy/translator/cl

arigo at codespeak.net arigo at codespeak.net
Wed Apr 26 19:49:41 CEST 2006


Author: arigo
Date: Wed Apr 26 19:49:41 2006
New Revision: 26380

Modified:
   pypy/dist/pypy/translator/cl/buildcl.py
Log:
Import the prettyprint option from the local conftest.


Modified: pypy/dist/pypy/translator/cl/buildcl.py
==============================================================================
--- pypy/dist/pypy/translator/cl/buildcl.py	(original)
+++ pypy/dist/pypy/translator/cl/buildcl.py	Wed Apr 26 19:49:41 2006
@@ -6,6 +6,7 @@
 from pypy.translator.cl.gencl import GenCL
 from pypy.translator.cl.clrepr import repr_const, repr_fun_name
 from pypy import conftest
+from pypy.translator.cl import conftest as clconftest
 
 global_cl = None
 
@@ -79,7 +80,7 @@
     out = generate_cl_func(func, argtypes)
     fpath = path.join("%s.lisp" % func.func_name)
 
-    if conftest.option.prettyprint:
+    if clconftest.option.prettyprint:
         script = path.join(".printer.lisp")
         fp = file(str(script), "w")
         fp.write(pretty_printer % (fpath,))
@@ -93,7 +94,7 @@
             print >>fp, repr_const(arg),
         print >>fp, "))"
         fp.close()
-        if conftest.option.prettyprint:
+        if clconftest.option.prettyprint:
             py.process.cmdexec("%s %s" % (cl, str(script)))
         output = py.process.cmdexec("%s %s" % (cl, str(fpath)))
         return readlisp(output)



More information about the Pypy-commit mailing list