diff options
-rwxr-xr-x | src/lib/Server/Reports/importscript.py | 2 |
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, '', '', ['']) |