From 9bde804da02a93878b2c35d5e389288a0cd3d132 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 16 Dec 2013 01:27:13 +0100 Subject: [PATCH] Add version number to output --- topple/topple.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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])