Skip to content

Commit 7d7303d

Browse files
committed
Update to import pyproj and pyshp "shapefile"
Changes the location to import the packages to the python system-wide package location.
1 parent ad5cf0e commit 7d7303d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mpl_toolkits/basemap/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from matplotlib.patches import Ellipse, Circle, Polygon, FancyArrowPatch
2828
from matplotlib.lines import Line2D
2929
from matplotlib.transforms import Bbox
30-
from . import pyproj
30+
port pyproj
3131
from mpl_toolkits.axes_grid1 import make_axes_locatable
3232
from matplotlib.image import imread
3333
import sys, os, math
@@ -2128,7 +2128,7 @@ def readshapefile(self,shapefile,name,drawbounds=True,zorder=None,
21282128
matplotlib.patches.LineCollection object is appended to the tuple.
21292129
"""
21302130
import shapefile as shp
2131-
from .shapefile import Reader
2131+
from shapefile import Reader
21322132
shp.default_encoding = default_encoding
21332133
if not os.path.exists('%s.shp'%shapefile):
21342134
raise IOError('cannot locate %s.shp'%shapefile)

0 commit comments

Comments
 (0)