summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2012-08-29 14:05:40 -0500
committerSol Jerome <sol.jerome@gmail.com>2012-08-29 14:05:40 -0500
commit27a68498326dfeb8c83e4fb988c169b557f7365b (patch)
treed007c9f3ccc10f461036dd0c3005fbf5b80dd264 /src
parentc8a2d4fdd39171ccacceac93086d5618536dff10 (diff)
downloadbcfg2-27a68498326dfeb8c83e4fb988c169b557f7365b.tar.gz
bcfg2-27a68498326dfeb8c83e4fb988c169b557f7365b.tar.bz2
bcfg2-27a68498326dfeb8c83e4fb988c169b557f7365b.zip
bcfg2-reports: Point to new settings file
The location of the db settings was changed in 8b438fd. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/bcfg2-reports4
1 files changed, 2 insertions, 2 deletions
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, '', '', [''])