X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=blobdiff_plain;f=bin%2Flilypython.py;h=210865bacb0ee23616c1f20c87bfbfa147babd7b;hb=6bc0a8a090e82c4bce57df8e980b48cc78cb422b;hp=4375c69d3e0932ee2b70322b5613b3e64bafd6a5;hpb=c9b442b3bbaee9618f179ad5aacb10aafd557514;p=lilypond.git diff --git a/bin/lilypython.py b/bin/lilypython.py index 4375c69d3e..210865bacb 100755 --- a/bin/lilypython.py +++ b/bin/lilypython.py @@ -24,6 +24,12 @@ version_re = regex.compile('\\version *\"\(.*\)\"') # make_assign_re = regex.compile('^\([A-Z_]*\) *= *\(.*\)$') make_assign_re = regex.compile('^\([A-Z_]*\)=\(.*\)$') +def mailaddress(): + try: + return os.environ['MAILADDRESS'] + except KeyError: + return '(address unknown)' + def version_tuple(file): lines = file.readlines()