Changed the signature line of the generate-wg-aliases to give the script path instead of a manually maintained string (which had become outdated) in the signature string at the top of the generated files.

- Legacy-Id: 8523
This commit is contained in:
Henrik Levkowetz 2014-10-30 15:39:46 +00:00
parent 26501383e0
commit 78da505019

View file

@ -15,6 +15,7 @@ mail lists: -ads, and -chairs
# boilerplate (from various other ietf/bin scripts)
import os, sys
filename = os.path.abspath(__file__)
basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))
sys.path = [ basedir ] + sys.path
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ietf.settings")
@ -45,9 +46,8 @@ if __name__ == '__main__':
# 5 years ago?
show_since = datetime.datetime.now() - datetime.timedelta(5 * 365)
modname = 'ietf.generate_wg_aliases'
date = time.strftime("%Y-%m-%d_%H:%M:%S")
signature = '# Generated by python -m %s at %s\n' % (modname, date)
signature = '# Generated by %s at %s\n' % (filename, date)
afile = open(settings.GROUP_ALIASES_PATH, "w")
vfile = open(settings.GROUP_VIRTUAL_PATH, "w")