Skip to content

Commit

Permalink
Removes unnecessary with statement
Browse files Browse the repository at this point in the history
This relates to issue #46
  • Loading branch information
samuelduchesne committed Jan 30, 2020
1 parent cf28f5d commit e2e1cc0
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions archetypal/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,18 +294,17 @@ def convert(
capacitance=capacitance
)
# Print path of output files in console
if paths:
click.echo("Here are the paths to the different output files: ")
click.echo("Here are the paths to the different output files: ")

for path in paths:
if "MODIFIED" in path:
click.echo("Path to the modified IDF file: {}".format(path))
elif "b18" in path:
click.echo("Path to the BUI file: {}".format(path))
elif "dck" in path:
click.echo("Path to the DCK file: {}".format(path))
else:
click.echo("Path to the T3D file: {}".format(path))
for path in paths:
if "MODIFIED" in path:
click.echo("Path to the modified IDF file: {}".format(path))
elif "b18" in path:
click.echo("Path to the BUI file: {}".format(path))
elif "dck" in path:
click.echo("Path to the DCK file: {}".format(path))
else:
click.echo("Path to the T3D file: {}".format(path))


@cli.command()
Expand Down

0 comments on commit e2e1cc0

Please sign in to comment.