openstack/python-swiftclient — pull request #2 by tjdett (2012-09-12 00:37:00+00:00)
Title: Fixing version reporting from executable

Rather confusingly, `swift --version` always returns `swift 1.0`.

This patch fixes the issue by using the internal version API. By using deferred version generation, it adds no extra overhead (other than module inclusion) unless `--version` is specified.