diff --git a/tools/python/booking_hotels.py b/tools/python/booking_hotels.py index f684505036..dda40cc7cf 100755 --- a/tools/python/booking_hotels.py +++ b/tools/python/booking_hotels.py @@ -126,7 +126,8 @@ def translate(source, output): ''' Reads *.pkl files and produces a single list of hotels as tab separated values. ''' - files = [filename for filename in os.listdir(source) if filename.endswith('.pkl')] + files = [os.path.join(source, filename) + for filename in os.listdir(source) if filename.endswith('.pkl')] data = [] for filename in sorted(files): @@ -207,6 +208,7 @@ def process_options(): if not options.download and not options.translate: parser.print_help() + # TODO(mgsergio): implpement it with argparse facilities. if options.translate and not options.output: print("--output isn't set") parser.print_help()