old_contents: import os
  import sys
  import platform
  import glob
  
  __all__ = ['base_job', 'esri_worker', 'gdal_worker', 'mongodb_worker',
             'sql_worker', 'oracle_worker', 'mysql_worker']
  
  # Add dependent libraries to the system paths.
  if platform.system() == 'Darwin':
      dll_path = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(__file__)), '..', 'arch', 'darwin_x86_64'))
      gdal_path = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), '..', 'gdal'))
      os.environ['PATH'] += os.pathsep + dll_path
      os.environ['GDAL_DATA'] += os.pathsep + gdal_path
  else:
      dll_path = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), '..', 'arch', 'win32_x86'))
      gdal_path = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), '..', 'gdal'))
      if os.environ['PATH'].endswith(';'):
          os.environ['PATH'] += dll_path
      else:
          os.environ['PATH'] += os.pathsep + dll_path
      try:
          if os.environ['GDAL_DATA'].endswith(';'):
              os.environ['GDAL_DATA'] += gdal_path
          else:
              os.environ['GDAL_DATA'] += os.pathsep + gdal_path
      except KeyError:
          os.environ['GDAL_DATA'] += gdal_path
  egg_path = os.path.join(dll_path, 'py')
  sys.path.append(egg_path)
  libs = glob.glob(os.path.join(egg_path, '*.egg'))
  for lib in libs:
      sys.path.append(lib)
  
new_contents: import os
  import sys
  import platform
  import glob
  
  __all__ = ['base_job', 'esri_worker', 'gdal_worker', 'mongodb_worker',
             'sql_worker', 'oracle_worker', 'mysql_worker']
  
  # Add dependent libraries to the system paths.
  if platform.system() == 'Darwin':
      dll_path = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(__file__)), '..', 'arch', 'darwin_x86_64'))
      gdal_path = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(__file__)), '..', 'gdal'))
      os.environ['PATH'] += os.pathsep + dll_path
  else:
      dll_path = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), '..', 'arch', 'win32_x86'))
      gdal_path = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), '..', 'gdal'))
      if os.environ['PATH'].endswith(';'):
          os.environ['PATH'] += dll_path
      else:
          os.environ['PATH'] += os.pathsep + dll_path
  os.environ['GDAL_DATA'] = gdal_path
  egg_path = os.path.join(dll_path, 'py')
  sys.path.append(egg_path)
  libs = glob.glob(os.path.join(egg_path, '*.egg'))
  for lib in libs:
      sys.path.append(lib)
  
subject: Fix gdal_data error