File: use_share_datafiles

package info (click to toggle)
basemap 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 213,364 kB
  • sloc: python: 11,874; makefile: 47; sh: 45
file content (23 lines) | stat: -rw-r--r-- 951 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From bd689cc71d141edf5e21913321345913951bf685 Mon Sep 17 00:00:00 2001
From: Sandro Tosi <morph@debian.org>
Date: Thu, 8 Oct 2015 08:29:10 -0700
Subject: Use the datafile in the python-mpltoolkits.basemap-data package,

 if BASEMAPDATA is not set
Patch-Name: use_share_datafiles
---
 lib/mpl_toolkits/basemap/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/packages/basemap/src/mpl_toolkits/basemap/__init__.py
+++ b/packages/basemap/src/mpl_toolkits/basemap/__init__.py
@@ -58,8 +58,7 @@
     if not os.path.isdir(basemap_datadir):
         raise RuntimeError('Path in environment BASEMAPDATA not a directory')
 else:
-    from mpl_toolkits import basemap_data
-    basemap_datadir = os.path.abspath(list(basemap_data.__path__)[0])
+    basemap_datadir = "/usr/share/basemap/data"
 
 # module variable that sets the default value for the 'latlon' kwarg.
 # can be set to True by user so plotting functions can take lons,lats