From 6794db04a229153ceefdfb3d3b99ed6e691d5df6 Mon Sep 17 00:00:00 2001 From: Ken Raffenetti Date: Fri, 13 Oct 2006 16:49:41 +0000 Subject: adding functionality to hostbase command line tools git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2432 ce84e21b-d406-0410-9b95-82705330c041 --- tools/hostinfo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/hostinfo.py') diff --git a/tools/hostinfo.py b/tools/hostinfo.py index 3418f0c76..d2b3628a3 100755 --- a/tools/hostinfo.py +++ b/tools/hostinfo.py @@ -1,10 +1,10 @@ #!/usr/bin/python """Hostinfo queries the hostbase database according to user-defined data""" -__revision__ = '0.1' +from os import system, environ +environ['DJANGO_SETTINGS_MODULE'] = 'Hostbase.settings' from getopt import gnu_getopt, GetoptError from django.db import connection -from os import system import sys logic_ops = ["and", "or"] -- cgit v1.2.3-1-g7c22