Package osgeo |
[hide private]
[frames] | no frames]

# Source Code for Package osgeo

     1  # __init__ for osgeo package.
     2
     3  # making the osgeo package version the same as the gdal version:
     4  from sys import version_info
     5  if version_info >= (2, 6, 0):
     6 -    def swig_import_helper():
     7          from os.path import dirname
     8          import imp
     9          fp = None
    10          try:
    11              fp, pathname, description = imp.find_module('_gdal', [dirname(__file__)])
    12          except ImportError:
    13              import _gdal
    14              return _gdal
    15          if fp is not None:
    16              try:
    17                  _mod = imp.load_module('_gdal', fp, pathname, description)
    18              finally:
    19                  fp.close()
    20              return _mod
    21      _gdal = swig_import_helper()
    22      del swig_import_helper
    23  else:
    24      import _gdal
    25
    26  __version__ = _gdal.__version__ = _gdal.VersionInfo("RELEASE_NAME")
    27