Package: python-pyproj / 1.8.9-1.1

01-use_proj-data_instead_of_embedded.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From: David Paleino <dapal@debian.org>
Subject: use official data instead of embedded copy
Forwarded: not-needed

---
 lib/pyproj/__init__.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- python-pyproj.orig/lib/pyproj/__init__.py
+++ python-pyproj/lib/pyproj/__init__.py
@@ -56,7 +56,7 @@ from array import array
 import os
 #import numpy as np
 
-pyproj_datadir = os.sep.join([os.path.dirname(__file__), 'data'])
+pyproj_datadir = "/usr/share/proj/"
 if not os.path.isdir(pyproj_datadir):
     msg="proj data directory not found. Expecting it at: %s"%pyproj_datadir
     raise IOError(msg)