diff options
author | dlynch <david.lynch@calxeda.com> | 2013-08-29 18:04:51 -0500 |
---|---|---|
committer | dlynch <david.lynch@calxeda.com> | 2013-08-29 18:04:51 -0500 |
commit | 133751e03e045d27b54530a0118e40ea1e1362be (patch) | |
tree | abd40e40fd63e8e541cde2d3bc98976ff58042a2 | |
parent | 0edbe7fa94363bc139e69fa99ffda7bb434c9d45 (diff) | |
download | cxmanage-133751e03e045d27b54530a0118e40ea1e1362be.tar.gz |
Added version check from special file for windows .zip operation
-rwxr-xr-x | scripts/cxmanage | 7 |
1 files changed, 6 insertions, 1 deletions
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 |