From 27a68498326dfeb8c83e4fb988c169b557f7365b Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Wed, 29 Aug 2012 14:05:40 -0500 Subject: bcfg2-reports: Point to new settings file The location of the db settings was changed in 8b438fd. Signed-off-by: Sol Jerome --- src/sbin/bcfg2-reports | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sbin') diff --git a/src/sbin/bcfg2-reports b/src/sbin/bcfg2-reports index 9baef3e4c..ee29944e2 100755 --- a/src/sbin/bcfg2-reports +++ b/src/sbin/bcfg2-reports @@ -8,14 +8,14 @@ from optparse import OptionParser, OptionGroup, make_option from Bcfg2.Compat import ConfigParser try: - import Bcfg2.Server.Reports.settings + import Bcfg2.settings except ConfigParser.NoSectionError: print("Your bcfg2.conf is currently missing the statistics section which " "is necessary for the reporting interface. Please see bcfg2.conf(5) " "for more details.") sys.exit(1) -project_directory = os.path.dirname(Bcfg2.Server.Reports.settings.__file__) +project_directory = os.path.dirname(Bcfg2.settings.__file__) project_name = os.path.basename(project_directory) sys.path.append(os.path.join(project_directory, '..')) project_module = __import__(project_name, '', '', ['']) -- cgit v1.2.3-1-g7c22