datatracker/ietf/bin/report_id_activity

23 lines
675 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_id_activity
print(report_id_activity(sys.argv[1], sys.argv[2]), end='')