import sys, os
from optparse import OptionParser
-from django.conf import settings
-
from hiprofile import Report, Connection, write_report
resourcedir = os.path.join(os.path.dirname(__file__),
(options, args) = parser.parse_args()
- # set up django template engine
- settings.configure(TEMPLATE_LOADERS =
- ('django.template.loaders.filesystem.load_template_source',),
- TEMPLATE_DIRS = (resourcedir,))
-
conn = Connection(options.host)
report = Report.extract(conn, options)