From: Markus Lehtonen Date: Fri, 6 Jul 2012 06:58:06 +0000 (+0300) Subject: config: read the right config if run from subdir X-Git-Tag: debian/0.6.26~57 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=94e5e0f6f86f7f1ea73b5969cc2843806dc2b8ea;p=tools%2Fgit-buildpackage.git config: read the right config if run from subdir A step towards being able to run GBP tools from subdirectories. Now expands '%(top_dir)s' and '%(git_dir)s' in config file path to root of the working directory and git metadata directory, respectively. Also, adds a new method _read_config_file() in preparation for supporting per-tree config files. Fixes tests.test_Config: currently the only correct way to define the config file(s) to be parsed is by using the GBP_CONF_FILES environment variable. Signed-off-by: Markus Lehtonen Conflicts: gbp/config.py ---