File: 01-use_proj-data_instead_of_embedded.patch

package info (click to toggle)
python-pyproj 1.8.9-1.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 9,208 kB
  • ctags: 2,340
  • sloc: ansic: 10,983; python: 510; makefile: 6
file content (19 lines) | stat: -rw-r--r-- 607 bytes parent folder | download | duplicates (2)
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)