Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- 0001_check_postgis.py.orig 2012-12-19 12:03:57.000000000 +0200
- +++ 0001_check_postgis.py 2013-04-02 09:57:50.000000000 +0300
- @@ -47,7 +47,11 @@
- # OS-depended hardcoded paths
- u = os.uname()
- if u[0] == "FreeBSD":
- - root = "/usr/local/share/postgis/contrib/postgis-1.5"
- + for v in ["2.0", "1.5"]:
- + root = ("/usr/local/share/postgis/contrib/postgis-" % v)
- + if os.path.exists(root):
- + self.postgis_root = root
- + return root
- elif u[0] == "SunOS":
- pass
- # Check hardcoded path exists
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement