예제 #1
0
def update_location_from_file(filename, kind):
  import os
  from ghost_spider.util import LocationCsv

  f = open(filename, 'rb')
  try:
    LocationCsv.import_file(f, kind)
  finally:
    if f:
      f.close()