Skip to content

Commit

Permalink
Merge pull request #1037 from QuLogic/ne-prefix
Browse files Browse the repository at this point in the history
Add ne_ prefix to NaturalEarth cache files.
  • Loading branch information
pelson authored Apr 26, 2018
2 parents e490f6d + 7500ad7 commit 1b05e08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cartopy/io/shapereader.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,11 @@ def default_downloader():
>>> ne_dnldr = NEShpDownloader.default_downloader()
>>> print(ne_dnldr.target_path_template)
{config[data_dir]}/shapefiles/natural_earth/{category}/\
{resolution}_{name}.shp
ne_{resolution}_{name}.shp
"""
default_spec = ('shapefiles', 'natural_earth', '{category}',
'{resolution}_{name}.shp')
'ne_{resolution}_{name}.shp')
ne_path_template = os.path.join('{config[data_dir]}', *default_spec)
pre_path_template = os.path.join('{config[pre_existing_data_dir]}',
*default_spec)
Expand Down

0 comments on commit 1b05e08

Please sign in to comment.