comparison flys-backend/contrib/shpimporter/shpimporter.py @ 4977:ee908e4946cd dami

corrected Typo
author Tom Gottfried <tom.gottfried@intevation.de>
date Wed, 13 Feb 2013 18:35:37 +0100
parents 9eea3cd22ee7
children b5ac7588cf4d
comparison
equal deleted inserted replaced
4976:a6ee62a070b0 4977:ee908e4946cd
1 try: 1 try:
2 from osgeo import ogr 2 from osgeo import ogr
3 except ImportErrror: 3 except ImportError:
4 import ogr 4 import ogr
5 5
6 import utils, optparse 6 import utils, optparse
7 import sys 7 import sys
8 import os 8 import os
167 167
168 else: # Currently only support for oracle and postgres 168 else: # Currently only support for oracle and postgres
169 try: 169 try:
170 import psycopg2 as dbapi 170 import psycopg2 as dbapi
171 raw_connstr=connstr.replace("PG:", "") 171 raw_connstr=connstr.replace("PG:", "")
172 except ImportErrror: 172 except ImportError:
173 ERROR("Module psycopg2 not found in: %s\n" 173 ERROR("Module psycopg2 not found in: %s\n"
174 "Neccessary to connect to a Posgresql Database.\n" 174 "Neccessary to connect to a Posgresql Database.\n"
175 "Please refer to the installation " 175 "Please refer to the installation "
176 "documentation." % sys.path) 176 "documentation." % sys.path)
177 177

http://dive4elements.wald.intevation.org