diff options
| author | Andrew Artajos <andrew.artajos.dev@gmail.com> | 2015-10-03 15:58:29 +1000 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2015-10-03 09:07:25 +0200 |
| commit | d2ef521a53e765585cb31a053e4b0158b5faefe6 (patch) | |
| tree | 4b03fd0763721d1d1361540aaccf15c772ccfc3c /docs/ref/contrib/gis/tutorial.txt | |
| parent | 58c7ff39fb265754fb17ab8d7f8a1401b355777b (diff) | |
Fixed #25398 -- Revised instances of os.path.join()
Replaced occurrences of os.path.join(BASE_DIR, 'folder/subfolder')
to os.path.join(BASE_DIR, 'folder', 'subfolder')
Diffstat (limited to 'docs/ref/contrib/gis/tutorial.txt')
| -rw-r--r-- | docs/ref/contrib/gis/tutorial.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/contrib/gis/tutorial.txt b/docs/ref/contrib/gis/tutorial.txt index 5d5fb6e770..bf2bc28d9b 100644 --- a/docs/ref/contrib/gis/tutorial.txt +++ b/docs/ref/contrib/gis/tutorial.txt @@ -327,7 +327,7 @@ tutorial, then you can determine its path using Python's built-in >>> import os >>> import world >>> world_shp = os.path.abspath(os.path.join(os.path.dirname(world.__file__), - ... 'data/TM_WORLD_BORDERS-0.3.shp')) + ... 'data', 'TM_WORLD_BORDERS-0.3.shp')) Now, open the world borders shapefile using GeoDjango's :class:`~django.contrib.gis.gdal.DataSource` interface:: @@ -452,7 +452,7 @@ with the following code:: 'mpoly' : 'MULTIPOLYGON', } - world_shp = os.path.abspath(os.path.join(os.path.dirname(__file__), 'data/TM_WORLD_BORDERS-0.3.shp')) + world_shp = os.path.abspath(os.path.join(os.path.dirname(__file__), 'data', 'TM_WORLD_BORDERS-0.3.shp')) def run(verbose=True): lm = LayerMapping(WorldBorder, world_shp, world_mapping, |
