# HG changeset patch # User Marcin Kuzminski # Date 2011-04-23 15:56:17 # Node ID cf2a67b91ffc2ba53638015131c43a623c204d17 # Parent 88e750527c7cdca92306b6f5a4ba34e7c9673777 fixed path for .ini file in test hg operations diff --git a/rhodecode/tests/test_hg_operations.py b/rhodecode/tests/test_hg_operations.py --- a/rhodecode/tests/test_hg_operations.py +++ b/rhodecode/tests/test_hg_operations.py @@ -14,6 +14,7 @@ import os 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.lib.auth import get_crypt 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)