diff options
Diffstat (limited to 'tools/hostinfo.py')
-rwxr-xr-x | tools/hostinfo.py | 4 |
1 files changed, 2 insertions, 2 deletions
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"] |