summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Reports
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2008-05-02 18:50:30 +0000
committerNarayan Desai <desai@mcs.anl.gov>2008-05-02 18:50:30 +0000
commite07c7c13b51bd54ea1ca48fa1cfd9e24cebc29e7 (patch)
tree21c77f0705c08c128bfac8152d1a69e2337547dd /src/lib/Server/Reports
parentadd15351c27dafa1557f700660f7cd262a0503d0 (diff)
downloadbcfg2-e07c7c13b51bd54ea1ca48fa1cfd9e24cebc29e7.tar.gz
bcfg2-e07c7c13b51bd54ea1ca48fa1cfd9e24cebc29e7.tar.bz2
bcfg2-e07c7c13b51bd54ea1ca48fa1cfd9e24cebc29e7.zip
Fix reports system settings import
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4588 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Reports')
-rwxr-xr-xsrc/lib/Server/Reports/importscript.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Reports/importscript.py b/src/lib/Server/Reports/importscript.py
index 34e6eef82..83df3ac94 100755
--- a/src/lib/Server/Reports/importscript.py
+++ b/src/lib/Server/Reports/importscript.py
@@ -9,7 +9,7 @@ except:
sys.stderr.write("Failed to load configuration settings. is /etc/bcfg2.conf readable?")
sys.exit(1)
-project_directory = os.path.dirname(settings.__file__)
+project_directory = os.path.dirname(Bcfg2.Server.Reports.settings.__file__)
project_name = os.path.basename(project_directory)
sys.path.append(os.path.join(project_directory, '..'))
project_module = __import__(project_name, '', '', [''])