diff --git a/topple/topple.py b/topple/topple.py index 88a2bd0..9bcbe18 100644 --- a/topple/topple.py +++ b/topple/topple.py @@ -7,6 +7,8 @@ import sys import pycommand +__version__ = '0.1.0' + def get_setting_specs(module): sys.path.insert(0, os.getcwd()) @@ -16,8 +18,8 @@ def get_setting_specs(module): def write_settings(specs, out, values=None): values = values or {} - print('# {file} file generated by topple' - .format(file=specs.OUTPUT_FILE), file=out) + print('# {file} file generated by topple v{version}' + .format(file=specs.OUTPUT_FILE, version=__version__), file=out) for key, spec in specs.SETTINGS: value = values.get(key, spec[1])