From b1fd78b0ad743680cbd7c01ce8343b9bb9135bfb Mon Sep 17 00:00:00 2001 From: Pau Gargallo Date: Thu, 26 Nov 2015 15:57:23 +0100 Subject: [PATCH] Use data_path/pmvs as defaut output dir --- bin/export_pmvs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/export_pmvs b/bin/export_pmvs index f49b69022..ee9294c22 100755 --- a/bin/export_pmvs +++ b/bin/export_pmvs @@ -31,9 +31,11 @@ if __name__ == "__main__": args = parser.parse_args() data = dataset.DataSet(args.dataset) - base_output_path = args.output - if base_output_path is None: - base_output_path = os.path.join(os.path.dirname(args.dataset), 'pmvs') + if args.output: + base_output_path = args.output + else: + base_output_path = os.path.join(data.data_path, 'pmvs') + print "Converting dataset [%s] to PMVS dir [%s]" % (data.data_path, base_output_path) io.mkdir_p(base_output_path)