25 lines
831 B
Python
Executable file
25 lines
831 B
Python
Executable file
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
# -*- Python -*-
|
|
#
|
|
|
|
# This script requires that the proper virtual python environment has been
|
|
# invoked before start
|
|
|
|
# Set PYTHONPATH and load environment variables for standalone script -----------------
|
|
import os, sys
|
|
basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))
|
|
sys.path = [ basedir ] + sys.path
|
|
os.environ["DJANGO_SETTINGS_MODULE"] = "ietf.settings"
|
|
|
|
import django
|
|
django.setup()
|
|
# -------------------------------------------------------------------------------------
|
|
|
|
from ietf.secr.proceedings.reports import report_progress_report
|
|
|
|
# handle unicode characters before attempting to print
|
|
output = report_progress_report(sys.argv[1], sys.argv[2])
|
|
output = output.replace(chr(160),' ') # replace NO-BREAK SPACE with space
|
|
print(output, end='')
|