[pypy-svn] r70678 - pypy/benchmarks

fijal at codespeak.net fijal at codespeak.net
Mon Jan 18 13:46:14 CET 2010


Author: fijal
Date: Mon Jan 18 13:46:13 2010
New Revision: 70678

Modified:
   pypy/benchmarks/benchmarks.py
Log:
kill pylib usage, it's for buildslaves after all, should be as standalone as
possible


Modified: pypy/benchmarks/benchmarks.py
==============================================================================
--- pypy/benchmarks/benchmarks.py	(original)
+++ pypy/benchmarks/benchmarks.py	Mon Jan 18 13:46:13 2010
@@ -1,9 +1,10 @@
 
-import py
+import os
 from unladen_swallow.perf import SimpleBenchmark, MeasureGeneric
 
 def MeasureFloat(python, options):
-    bm_path = str(py.path.local(__file__).dirpath().join("shootout", "float.py"))
+    bm_path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
+                           'shootout', 'float.py')
     return MeasureGeneric(python, options, bm_path)
 
 def BM_float(*args, **kwds):



More information about the Pypy-commit mailing list