Skip to content

Commit

Permalink
more informative ete3 version command
Browse files Browse the repository at this point in the history
  • Loading branch information
jhcepas committed Sep 25, 2017
1 parent db25665 commit a040b0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ete3/tools/ete.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ def tree_iterator(args):

def main():
_main(sys.argv)

def _main(arguments):

if len(arguments) > 1:
subcommand = arguments[1]
if subcommand == "version":
Expand Down Expand Up @@ -125,6 +126,7 @@ def _main(arguments):
if p.returncode == 0:
_version += " (git-{})".format(bytes.decode(out).rstrip())

_version += " Tools path: %s" %(TOOLSPATH)
print(_version)
return
elif subcommand == "upgrade-external-tools":
Expand Down

0 comments on commit a040b0c

Please sign in to comment.