Skip to content

Commit 78da505

Browse files
committed
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
1 parent 2650138 commit 78da505

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/bin/generate-wg-aliases

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ mail lists: -ads, and -chairs
1515

1616
# boilerplate (from various other ietf/bin scripts)
1717
import os, sys
18+
filename = os.path.abspath(__file__)
1819
basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))
1920
sys.path = [ basedir ] + sys.path
2021
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ietf.settings")
@@ -45,9 +46,8 @@ if __name__ == '__main__':
4546
# 5 years ago?
4647
show_since = datetime.datetime.now() - datetime.timedelta(5 * 365)
4748

48-
modname = 'ietf.generate_wg_aliases'
4949
date = time.strftime("%Y-%m-%d_%H:%M:%S")
50-
signature = '# Generated by python -m %s at %s\n' % (modname, date)
50+
signature = '# Generated by %s at %s\n' % (filename, date)
5151

5252
afile = open(settings.GROUP_ALIASES_PATH, "w")
5353
vfile = open(settings.GROUP_VIRTUAL_PATH, "w")

0 commit comments

Comments
 (0)