Advertisement
Guest User

Untitled

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