qiime/qiime — pull request #680 by adamrp (2013-02-12 21:17:07+00:00)
Title: Fixes #672, explicitly checks type of opts.input_dir

If output_dir is specified, uses that output_dir.

If output_dir is not specified, checks input_dir type:
- if it is a file, uses os.path.split to get the containing directory and uses it as output_dir
- if it is a directory, sets output_dir = input_dir