Skip to content

Commit

Permalink
fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
proost committed May 11, 2017
1 parent 94ff07f commit 5e0883e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def cli():


@cli.command()
@click.argument('path', type=click.Path())
@click.argument('path', type=click.Path(exists=True))
@click.argument('db', type=click.Path())
def build(path, db):
"""
Expand All @@ -61,7 +61,7 @@ def build(path, db):

# find fasta files and concatenate them to a temporary file
with open(full_fasta, 'w') as f_out:
for file in path:
for file in os.listdir(path):
if file.lower().endswith('.fasta'):
click.echo("\tFound file: %s" % file)
fasta_count += 1
Expand Down

0 comments on commit 5e0883e

Please sign in to comment.