From 133751e03e045d27b54530a0118e40ea1e1362be Mon Sep 17 00:00:00 2001 From: dlynch Date: Thu, 29 Aug 2013 18:04:51 -0500 Subject: Added version check from special file for windows .zip operation --- scripts/cxmanage | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/cxmanage b/scripts/cxmanage index 5ca5971..685b8b1 100755 --- a/scripts/cxmanage +++ b/scripts/cxmanage @@ -329,7 +329,12 @@ def validate_args(args): def print_version(): """ Print the current version of cxmanage """ - version = pkg_resources.require('cxmanage')[0].version + if sys.platform == 'win32': + version = "Unknown" + with open('cxmanage_version.txt', "r") as f: + version = f.readline().strip() + else: + version = pkg_resources.require('cxmanage')[0].version print "cxmanage version %s" % version -- cgit v1.2.1