Report correct version in .pka file header

This commit is contained in:
Thomas Holder authored and Oliver Beckstein committed 2020-07-21 17:31:59 -07:00
1 parent cb65c644c6
commit 552dd133e6
1 file changed
+2 -1
+2 -1
View File
@@ -6,6 +6,7 @@ Output routines.
""" """
from datetime import date from datetime import date
from propka.lib import info from propka.lib import info
from . import __version__
def open_file_for_writing(input_file): def open_file_for_writing(input_file):
@@ -368,7 +369,7 @@ def get_propka_header():
string string
""" """
today = date.today() today = date.today()
str_ = "propka3.2 {0!s:>93s}\n".format(today) str_ = f"propka{__version__:<53} {today!s:>43}\n"
str_ += """ str_ += """
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
-- -- -- --