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__),
- '..', 'share', 'hiprofile')
-
default_thresholds = {
'binary': '5%',
'symbol': '20',
(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)
report.annotate(conn, options)
- write_report(report, resourcedir, options.outdir)
+ write_report(report, options.outdir)
if __name__ == '__main__':
sys.exit(main(sys.argv))