From c2b701ec9eebe6d4f3f4931a6daaab960f059c5b Mon Sep 17 00:00:00 2001 From: y-p Date: Sat, 10 Nov 2012 15:26:20 +0200 Subject: [PATCH 1/2] ENH: Use __file__ to determine REPO_PATH in vb_suite/suite.py --- vb_suite/suite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vb_suite/suite.py b/vb_suite/suite.py index 0a7c4eb9945f7..4d38388548984 100644 --- a/vb_suite/suite.py +++ b/vb_suite/suite.py @@ -56,9 +56,9 @@ DB_PATH = config.get('setup', 'db_path') TMP_DIR = config.get('setup', 'tmp_dir') except: - REPO_PATH = os.path.join(HOME, 'code/pandas') + REPO_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__),"../")) REPO_URL = 'git@github.com:pydata/pandas.git' - DB_PATH = os.path.join(HOME, 'code/pandas/vb_suite/benchmarks.db') + DB_PATH = os.path.join(REPO_PATH, 'vb_suite/benchmarks.db') TMP_DIR = os.path.join(HOME, 'tmp/vb_pandas') PREPARE = """ From 7c0248bce868cf916adcc5573a02d0e3cba6ce8d Mon Sep 17 00:00:00 2001 From: y-p Date: Sat, 10 Nov 2012 15:34:07 +0200 Subject: [PATCH 2/2] ENH: make vbench_suite/run_suite executable --- vb_suite/run_suite.py | 1 + 1 file changed, 1 insertion(+) mode change 100644 => 100755 vb_suite/run_suite.py diff --git a/vb_suite/run_suite.py b/vb_suite/run_suite.py old mode 100644 new mode 100755 index febd9d1fa6cad..0c03d17607f4e --- a/vb_suite/run_suite.py +++ b/vb_suite/run_suite.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python from vbench.api import BenchmarkRunner from suite import *