Skip to content

Commit

Permalink
Fix console script
Browse files Browse the repository at this point in the history
  • Loading branch information
aebruno committed May 20, 2014
1 parent 14edb16 commit 3ab9e11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion cockatoo/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,14 @@ def hclust(ctx, screen, pdist, dendrogram, newick, testing, basename, cutoff, we
s = cockatoo.screen.parse_json(screen)
cockatoo.hclust.cluster(s, weights, cutoff, basename, pdist, dendrogram, newick, testing)

if __name__ == '__main__':
def main():
logging.basicConfig(
format='%(asctime)s [%(levelname)s] %(message)s',
datefmt='%Y-%m-%d %H:%M:%S',
level=logging.CRITICAL
)

cli(obj={})

if __name__ == '__main__':
main()
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
],
entry_points='''
[console_scripts]
cockatoo=cockatoo.cli:cli
cockatoo=cockatoo.cli:main
''',
classifiers=[
'Development Status :: 3 - Alpha',
Expand Down

0 comments on commit 3ab9e11

Please sign in to comment.