From 5aef0e13411fb8ce4e396b9addf65ef5a9ba28a2 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Fri, 9 Mar 2012 11:05:13 +0000 Subject: Add pybasedir and bindir options Add a pybasedir option so that it can be used for interpolation in the default values of other options. This helps eliminate hard-coded paths from the sample config file. Also add a bindir option for similar reasons, but it also helps with packaging. Change-Id: Iadc746dcf2a24adbdf9bac945b5b330f01faeeb5 --- nova/console/xvp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/console') diff --git a/nova/console/xvp.py b/nova/console/xvp.py index 14e9cc0e7..341af1c57 100644 --- a/nova/console/xvp.py +++ b/nova/console/xvp.py @@ -33,7 +33,7 @@ from nova import utils xvp_opts = [ cfg.StrOpt('console_xvp_conf_template', - default=utils.abspath('console/xvp.conf.template'), + default='$pybasedir/nova/console/xvp.conf.template', help='XVP conf template'), cfg.StrOpt('console_xvp_conf', default='/etc/xvp.conf', -- cgit