[pypy-commit] benchmarks default: kill the symlink, and use a python hack to share the content of util.py in both directories

antocuni noreply at buildbot.pypy.org
Sat Jul 16 10:28:44 CEST 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: 
Changeset: r122:8c862863e7fb
Date: 2011-07-16 10:27 +0200
http://bitbucket.org/pypy/benchmarks/changeset/8c862863e7fb/

Log:	kill the symlink, and use a python hack to share the content of
	util.py in both directories

diff --git a/own/util.py b/own/util.py
old mode 120000
new mode 100644
--- a/own/util.py
+++ b/own/util.py
@@ -1,1 +1,5 @@
-../unladen_swallow/performance/util.py
\ No newline at end of file
+import os.path
+
+root = os.path.abspath(os.path.join(__file__, '..', '..'))
+util_py = os.path.join(root, 'unladen_swallow', 'performance', 'util.py')
+execfile(util_py)


More information about the pypy-commit mailing list