comparison globalneighbors/distance.py @ 19:811adc9736eb

add configuration for gunicorn
author Jeff Hammel <k0scist@gmail.com>
date Sun, 25 Jun 2017 15:43:45 -0700
parents 27925261c137
children e69cb496324e
comparison
equal deleted inserted replaced
18:87ae70245201 19:811adc9736eb
191 lat_tol=options.latlon[0], 191 lat_tol=options.latlon[0],
192 lon_tol=options.latlon[-1], 192 lon_tol=options.latlon[-1],
193 output=options.output_counter) 193 output=options.output_counter)
194 194
195 # output 195 # output
196 print ("Outputting neighbors")
197 sys.stdout.flush()
196 options.output.write(json.dumps(neighbors)) 198 options.output.write(json.dumps(neighbors))
197 199
198 if __name__ == '__main__': 200 if __name__ == '__main__':
199 main() 201 main()