summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'src/sbin')
-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, '', '', [''])