f_name = [] f_name.append('gdrive.py') f_name.append('getCIR.m') f_name.append('getETCI.m') f_name.append('getid.m') f_name.append('getMNDVI.m') f_name.append('getMNDWI.m') f_name.append('getNDVI.m') f_name.append('getNDWI.m') f_name.append('getnumdays.m') #f_name.append('get-pip.py') f_name.append('getrawbands.m') f_name.append('getTCI.m') f_name.append('make_bigquery.py') f_name.append('monitored_fields_data.m') f_name.append('script_ndwi.m') f_name.append('send_moni_noti.py') f_name.append('server2.py') f_name.append('servicekey2.json') f_name.append('getmontype.m') f_name.append('getuid.m') f_name.append('getuseruid.m') f_name.append('jsonopt.m') f_name.append('load_json.cc') f_name.append('loadjson.m') f_name.append('make_nb.py') f_name.append('ondemandimagery.m') f_name.append('pro_status.py') f_name.append('save_json.cc') f_name.append('script1.m') f_name.append('sendemail.py') f_name.append('send_notification.py') f_name.append('sen_start_noti.py') f_name.append('servicekey.json') f_name.append('struct2jdata.m') f_name.append('TCPServer.py') f_name.append('varargin2struct.m') f_name.append('send_error_noti.py') f_name.append('crop_images.m') f_name.append('identify_field.m') f_name.append('gmap_image.py') f_name.append('contour_images.py') f_name.append('find_img.py') f_name.append('getmapstaticcoords.py') f_name.append('getmontype.m') f_name.append('LatLonToMeters.py') f_name.append('latlontopixels.py') f_name.append('merge_contour_images.py') f_name.append('merge_img.py') f_name.append('MetersToLatLon.py') f_name.append('MetersToPixels.py') f_name.append('pixelstolatlon.py') f_name.append('PixelsToMeters.py') f_name.append('send_expired_noti.py') f_name.append('send_expiring_noti.py') f_name.append('newTCP.py') f_name.append('send_sms.py') f_name.append('make_trial_bigquery.py') f_name.append('gmap_image_large.py') f_name.append('find_img_large.py') f_name.append('crop_images_large.m') f_name.append('c_images.m') f_name.append('sendgeotifs.py') f_name.append('sendonlyreport.py') f_name.append('create_bargraph.py') f_name.append('create_geotiff.py') f_name.append('create_linegraph.py') f_name.append('create_temperature_bargraph.py') f_name.append('create_weather_line_graph.py') f_name.append('gen_geotiff.py') f_name.append('gen_report.py') f_name.append('get_weather_data.py') lines_count = 0 print(len(f_name)) for key in f_name: with open(key) as f: for i, l in enumerate(f): pass print(key) print(i) lines_count = lines_count+i print(lines_count)