archive_evt.py takes as parameter the rst file of an event where the schedule directive is used for the event's program and replace the directive with program's content in rst.
Usage:
python3 archive_evt.py path/to/evt_to_archive.rst
"""
importsys
importos
importre
try:
importrst_directivesasrd
exceptImportError:
cwd=os.getcwd()
l=cwd.split("/")
print("You have to set up properly your PYTHONPATH:")
print("""archive_evt.py takes as parameter the rst file of an event where the schedule directive is used for the event's program and replace the directive with program's content in rst.