diff options
Diffstat (limited to 'scripts/cxmanage')
-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 |