fix: bui-agent cannot display its current version

This commit is contained in:
ziirish 2018-05-14 17:12:23 +02:00
parent fa9aed5ce8
commit 03999a173a
No known key found for this signature in database
GPG key ID: 72DB229A64B54E46

View file

@ -38,7 +38,8 @@ def parse_args(name=None):
options = parser.parse_args()
if options.version:
from burpui_agent import __title__, __version__, __release__
from burpui_agent import __title__
from burpui_agent.desc import __version__, __release__
ver = '{}: v{}'.format(mname or __title__, __version__)
if options.log:
ver = '{} ({})'.format(ver, __release__)