Skip to content

Commit 5fdec0d

Browse files
y-pwesm
y-p
authored andcommitted
ENH: Use __file__ to determine REPO_PATH in vb_suite/suite.py
1 parent cda2084 commit 5fdec0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vb_suite/suite.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656
DB_PATH = config.get('setup', 'db_path')
5757
TMP_DIR = config.get('setup', 'tmp_dir')
5858
except:
59-
REPO_PATH = os.path.join(HOME, 'code/pandas')
59+
REPO_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__),"../"))
6060
REPO_URL = '[email protected]:pydata/pandas.git'
61-
DB_PATH = os.path.join(HOME, 'code/pandas/vb_suite/benchmarks.db')
61+
DB_PATH = os.path.join(REPO_PATH, 'vb_suite/benchmarks.db')
6262
TMP_DIR = os.path.join(HOME, 'tmp/vb_pandas')
6363

6464
PREPARE = """

0 commit comments

Comments
 (0)