From 61c1628cd625282b7fc4dcce2161474a84ef0f8c Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Sun, 28 Jan 2018 21:55:49 +0100 Subject: [PATCH] [enh] store silkaj version in constants file. --- src/constants.py | 1 + src/silkaj.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/constants.py b/src/constants.py index 7082676b..00e6436a 100644 --- a/src/constants.py +++ b/src/constants.py @@ -1 +1,2 @@ +SILKAJ_VERSION = "silkaj 0.3.0" NO_MATCHING_ID = "No matching identity" diff --git a/src/silkaj.py b/src/silkaj.py index 59d207d0..35cf51b2 100755 --- a/src/silkaj.py +++ b/src/silkaj.py @@ -7,6 +7,7 @@ from commandlines import Command from tx import send_transaction from commands import * from wot import * +from constants import SILKAJ_VERSION def usage(): @@ -65,7 +66,7 @@ def cli(): ep, c = dict(), Command() subcmd = ["info", "diffi", "network", "issuers", "argos", "amount", "transaction", "generate_auth_file", "id", "wot"] if c.is_version_request(): - print("silkaj 0.3.0") + print(SILKAJ_VERSION) sys.exit() if c.is_help_request() or c.is_usage_request() or c.subcmd not in subcmd: usage() -- GitLab