Mercurial > kallithea
changeset 1277:cf2a67b91ffc beta
fixed path for .ini file in test hg operations
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 23 Apr 2011 15:56:17 +0200 |
parents | 88e750527c7c |
children | 2b098619e238 |
files | rhodecode/tests/test_hg_operations.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/tests/test_hg_operations.py Sat Apr 23 15:52:32 2011 +0200 +++ b/rhodecode/tests/test_hg_operations.py Sat Apr 23 15:56:17 2011 +0200 @@ -14,6 +14,7 @@ import shutil import logging from os.path import join as jn +from os.path import dirname as dn from tempfile import _RandomNameSequence from subprocess import Popen, PIPE @@ -31,7 +32,8 @@ from rhodecode.tests import TESTS_TMP_PATH, NEW_HG_REPO, HG_REPO from rhodecode.config.environment import load_environment -conf = appconfig('config:development.ini', relative_to='./../../') +rel_path = dn(dn(dn(os.path.abspath(__file__)))) +conf = appconfig('config:development.ini', relative_to=rel_path) load_environment(conf.global_conf, conf.local_conf) add_cache(conf)