summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordlynch <david.lynch@calxeda.com>2013-08-29 18:04:51 -0500
committerdlynch <david.lynch@calxeda.com>2013-08-29 18:04:51 -0500
commit133751e03e045d27b54530a0118e40ea1e1362be (patch)
treeabd40e40fd63e8e541cde2d3bc98976ff58042a2
parent0edbe7fa94363bc139e69fa99ffda7bb434c9d45 (diff)
downloadcxmanage-133751e03e045d27b54530a0118e40ea1e1362be.tar.gz
Added version check from special file for windows .zip operation
-rwxr-xr-xscripts/cxmanage7
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